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