]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0435]: attempt to use a non-constant value in a constant |
0731742a | 2 | --> $DIR/issue-42060.rs:3:23 |
8faf50e0 | 3 | | |
5869c6ff XL |
4 | LL | let thing = (); |
5 | | --------- help: consider using `const` instead of `let`: `const thing` | |
532ac7d7 | 6 | LL | let other: typeof(thing) = thing; |
8faf50e0 XL |
7 | | ^^^^^ non-constant value |
8 | ||
9 | error[E0435]: attempt to use a non-constant value in a constant | |
0731742a | 10 | --> $DIR/issue-42060.rs:9:13 |
8faf50e0 | 11 | | |
5869c6ff XL |
12 | LL | let q = 1; |
13 | | ----- help: consider using `const` instead of `let`: `const q` | |
532ac7d7 | 14 | LL | <typeof(q)>::N |
8faf50e0 XL |
15 | | ^ non-constant value |
16 | ||
17 | error[E0516]: `typeof` is a reserved keyword but unimplemented | |
0731742a | 18 | --> $DIR/issue-42060.rs:3:16 |
8faf50e0 | 19 | | |
532ac7d7 | 20 | LL | let other: typeof(thing) = thing; |
8faf50e0 XL |
21 | | ^^^^^^^^^^^^^ reserved keyword |
22 | ||
23 | error[E0516]: `typeof` is a reserved keyword but unimplemented | |
0731742a | 24 | --> $DIR/issue-42060.rs:9:6 |
8faf50e0 | 25 | | |
532ac7d7 | 26 | LL | <typeof(q)>::N |
8faf50e0 XL |
27 | | ^^^^^^^^^ reserved keyword |
28 | ||
29 | error: aborting due to 4 previous errors | |
30 | ||
48663c56 | 31 | Some errors have detailed explanations: E0435, E0516. |
8faf50e0 | 32 | For more information about an error, try `rustc --explain E0435`. |