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