about summary refs log tree commit diff
path: root/tests/ui/typeof/issue-42060.stderr
blob: 733ad37693bec0740dcb2108de8c3245fbafb6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
error[E0435]: attempt to use a non-constant value in a constant
  --> $DIR/issue-42060.rs:3:23
   |
LL |     let other: typeof(thing) = thing;
   |                       ^^^^^ non-constant value
   |
help: consider using `const` instead of `let`
   |
LL -     let thing = ();
LL +     const thing: /* Type */ = ();
   |

error[E0435]: attempt to use a non-constant value in a constant
  --> $DIR/issue-42060.rs:9:13
   |
LL |     <typeof(q)>::N
   |             ^ non-constant value
   |
help: consider using `const` instead of `let`
   |
LL -     let q = 1;
LL +     const q: /* Type */ = 1;
   |

error[E0516]: `typeof` is a reserved keyword but unimplemented
  --> $DIR/issue-42060.rs:3:16
   |
LL |     let other: typeof(thing) = thing;
   |                ^^^^^^^^^^^^^ reserved keyword

error[E0516]: `typeof` is a reserved keyword but unimplemented
  --> $DIR/issue-42060.rs:9:6
   |
LL |     <typeof(q)>::N
   |      ^^^^^^^^^ reserved keyword

error: aborting due to 4 previous errors

Some errors have detailed explanations: E0435, E0516.
For more information about an error, try `rustc --explain E0435`.