summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_error_codes/src/error_codes/E0516.md
blob: 935c31bbab98a5797921d9ccc5e781751414dc08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
The `typeof` keyword is currently reserved but unimplemented.

Erroneous code example:

```compile_fail,E0516
fn main() {
    let x: typeof(92) = 92;
}
```

Try using type inference instead. Example:

```
fn main() {
    let x = 92;
}
```