]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-42060.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[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:13:23
3    |
4 LL |     let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant
5    |                       ^^^^^ non-constant value
6
7 error[E0435]: attempt to use a non-constant value in a constant
8   --> $DIR/issue-42060.rs:19:13
9    |
10 LL |     <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant
11    |             ^ non-constant value
12
13 error[E0516]: `typeof` is a reserved keyword but unimplemented
14   --> $DIR/issue-42060.rs:13:16
15    |
16 LL |     let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant
17    |                ^^^^^^^^^^^^^ reserved keyword
18
19 error[E0516]: `typeof` is a reserved keyword but unimplemented
20   --> $DIR/issue-42060.rs:19:6
21    |
22 LL |     <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant
23    |      ^^^^^^^^^ reserved keyword
24
25 error: aborting due to 4 previous errors
26
27 Some errors occurred: E0435, E0516.
28 For more information about an error, try `rustc --explain E0435`.