W3cubDocs

/Rust

Error code E0516

Note: this error code is no longer emitted by the compiler.

The typeof keyword is currently reserved but unimplemented.

Erroneous code example:

fn main() {
    let x: typeof(92) = 92;
}

Try using type inference instead. Example:

fn main() {
    let x = 92;
}

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0516.html