rust/tests/ui/parser/macro/macro-expand-to-field.stderr

72 lines
1.8 KiB
Plaintext
Raw Normal View History

2023-07-24 12:05:10 -05:00
error: unexpected token: `!`
--> $DIR/macro-expand-to-field.rs:19:10
|
LL | struct Struct {
| ------ while parsing this struct
LL |
LL | field!(bar:u128),
2023-07-24 12:05:10 -05:00
| ^ unexpected token after this
|
= note: macros cannot expand to struct fields
2023-07-24 12:05:10 -05:00
error: unexpected token: `!`
--> $DIR/macro-expand-to-field.rs:29:12
|
LL | variant!(whoops),
| ^ unexpected token after this
|
= note: macros cannot expand to enum variants
2023-07-24 12:05:10 -05:00
error: unexpected token: `!`
--> $DIR/macro-expand-to-field.rs:35:12
2023-07-24 12:05:10 -05:00
|
LL | variant!(recovers),
| ^ unexpected token after this
|
= note: macros cannot expand to enum variants
error: unexpected token: `!`
--> $DIR/macro-expand-to-field.rs:40:14
2023-07-24 12:05:10 -05:00
|
LL | Data {
| ---- while parsing this struct
2023-08-02 18:59:30 -05:00
LL | field!(x:u32),
| ^ unexpected token after this
|
= note: macros cannot expand to struct fields
error: unexpected token: `!`
--> $DIR/macro-expand-to-field.rs:49:14
2023-08-02 18:59:30 -05:00
|
LL | Named {
| ----- while parsing this struct
2023-07-24 12:05:10 -05:00
LL | field!(oopsies:()),
| ^ unexpected token after this
|
= note: macros cannot expand to struct fields
error: unexpected token: `!`
--> $DIR/macro-expand-to-field.rs:60:10
2023-07-24 12:05:10 -05:00
|
LL | union Union {
| ----- while parsing this union
...
2023-07-24 12:05:10 -05:00
LL | field!(oopsies:()),
| ^ unexpected token after this
|
= note: macros cannot expand to union fields
error: unexpected token: `!`
--> $DIR/macro-expand-to-field.rs:73:16
2023-07-24 12:05:10 -05:00
|
LL | pub struct Lazy {
| ---- while parsing this struct
LL |
LL | unreachable!()
| ^ unexpected token after this
2023-07-24 12:05:10 -05:00
|
= note: macros cannot expand to struct fields
2023-07-24 12:05:10 -05:00
error: aborting due to 7 previous errors