fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.8 KiB71 linesraw
1error: unexpected token: `!`
2  --> $DIR/macro-expand-to-field.rs:19:10
3   |
4LL | struct Struct {
5   |        ------ while parsing this struct
6LL |
7LL |     field!(bar:u128),
8   |          ^ unexpected token after this
9   |
10   = note: macros cannot expand to struct fields
11
12error: unexpected token: `!`
13  --> $DIR/macro-expand-to-field.rs:29:12
14   |
15LL |     variant!(whoops),
16   |            ^ unexpected token after this
17   |
18   = note: macros cannot expand to enum variants
19
20error: unexpected token: `!`
21  --> $DIR/macro-expand-to-field.rs:35:12
22   |
23LL |     variant!(recovers),
24   |            ^ unexpected token after this
25   |
26   = note: macros cannot expand to enum variants
27
28error: unexpected token: `!`
29  --> $DIR/macro-expand-to-field.rs:40:14
30   |
31LL |     Data {
32   |     ---- while parsing this struct
33LL |         field!(x:u32),
34   |              ^ unexpected token after this
35   |
36   = note: macros cannot expand to struct fields
37
38error: unexpected token: `!`
39  --> $DIR/macro-expand-to-field.rs:49:14
40   |
41LL |     Named {
42   |     ----- while parsing this struct
43LL |         field!(oopsies:()),
44   |              ^ unexpected token after this
45   |
46   = note: macros cannot expand to struct fields
47
48error: unexpected token: `!`
49  --> $DIR/macro-expand-to-field.rs:60:10
50   |
51LL | union Union {
52   |       ----- while parsing this union
53...
54LL |     field!(oopsies:()),
55   |          ^ unexpected token after this
56   |
57   = note: macros cannot expand to union fields
58
59error: unexpected token: `!`
60  --> $DIR/macro-expand-to-field.rs:73:16
61   |
62LL | pub struct Lazy {
63   |            ---- while parsing this struct
64LL |
65LL |     unreachable!()
66   |                ^ unexpected token after this
67   |
68   = note: macros cannot expand to struct fields
69
70error: aborting due to 7 previous errors
71