]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0516.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0516.md
1 The `typeof` keyword is currently reserved but unimplemented.
2
3 Erroneous code example:
4
5 ```compile_fail,E0516
6 fn main() {
7     let x: typeof(92) = 92;
8 }
9 ```
10
11 Try using type inference instead. Example:
12
13 ```
14 fn main() {
15     let x = 92;
16 }
17 ```