fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

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