1 error[E0435]: attempt to use a non-constant value in a constant
2 --> $DIR/issue-42060.rs:13:23
4 LL | let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant
5 | ^^^^^ non-constant value
7 error[E0435]: attempt to use a non-constant value in a constant
8 --> $DIR/issue-42060.rs:19:13
10 LL | <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant
11 | ^ non-constant value
13 error[E0516]: `typeof` is a reserved keyword but unimplemented
14 --> $DIR/issue-42060.rs:13:16
16 LL | let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant
17 | ^^^^^^^^^^^^^ reserved keyword
19 error[E0516]: `typeof` is a reserved keyword but unimplemented
20 --> $DIR/issue-42060.rs:19:6
22 LL | <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant
23 | ^^^^^^^^^ reserved keyword
25 error: aborting due to 4 previous errors
27 Some errors occurred: E0435, E0516.
28 For more information about an error, try `rustc --explain E0435`.