1 error[E0435]: attempt to use a non-constant value in a constant
2 --> $DIR/issue-42060.rs:3:23
5 | --------- help: consider using `const` instead of `let`: `const thing`
6 LL | let other: typeof(thing) = thing;
7 | ^^^^^ non-constant value
9 error[E0435]: attempt to use a non-constant value in a constant
10 --> $DIR/issue-42060.rs:9:13
13 | ----- help: consider using `const` instead of `let`: `const q`
15 | ^ non-constant value
17 error[E0516]: `typeof` is a reserved keyword but unimplemented
18 --> $DIR/issue-42060.rs:3:16
20 LL | let other: typeof(thing) = thing;
21 | ^^^^^^^^^^^^^ reserved keyword
23 error[E0516]: `typeof` is a reserved keyword but unimplemented
24 --> $DIR/issue-42060.rs:9:6
27 | ^^^^^^^^^ reserved keyword
29 error: aborting due to 4 previous errors
31 Some errors have detailed explanations: E0435, E0516.
32 For more information about an error, try `rustc --explain E0435`.