2023-07-24 12:05:10 -05:00
|
|
|
error: unexpected token: `!`
|
2023-08-21 08:05:01 -05:00
|
|
|
--> $DIR/macro-expand-to-field.rs:19:10
|
2023-07-23 23:55:47 -05:00
|
|
|
|
|
2023-08-21 08:05:01 -05:00
|
|
|
LL | struct Struct {
|
|
|
|
| ------ while parsing this struct
|
|
|
|
LL |
|
2023-07-23 23:55:47 -05:00
|
|
|
LL | field!(bar:u128),
|
2023-07-24 12:05:10 -05:00
|
|
|
| ^ unexpected token after this
|
2023-07-23 23:55:47 -05:00
|
|
|
|
|
|
|
|
= note: macros cannot expand to struct fields
|
|
|
|
|
2023-07-24 12:05:10 -05:00
|
|
|
error: unexpected token: `!`
|
2023-08-21 08:05:01 -05:00
|
|
|
--> $DIR/macro-expand-to-field.rs:29:12
|
2023-07-23 23:55:47 -05:00
|
|
|
|
|
|
|
|
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: `!`
|
2023-08-21 08:05:01 -05:00
|
|
|
--> $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: `!`
|
2023-08-21 08:05:01 -05:00
|
|
|
--> $DIR/macro-expand-to-field.rs:40:14
|
2023-07-24 12:05:10 -05:00
|
|
|
|
|
2023-08-21 08:05:01 -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: `!`
|
2023-08-21 08:05:01 -05:00
|
|
|
--> $DIR/macro-expand-to-field.rs:49:14
|
2023-08-02 18:59:30 -05:00
|
|
|
|
|
2023-08-21 08:05:01 -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: `!`
|
2023-08-21 08:05:01 -05:00
|
|
|
--> $DIR/macro-expand-to-field.rs:60:10
|
2023-07-24 12:05:10 -05:00
|
|
|
|
|
2023-08-21 08:05:01 -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: `!`
|
2023-08-21 08:05:01 -05:00
|
|
|
--> $DIR/macro-expand-to-field.rs:73:16
|
2023-07-24 12:05:10 -05:00
|
|
|
|
|
2023-08-21 08:05:01 -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
|
|
|
|
|
2023-08-21 08:05:01 -05:00
|
|
|
= note: macros cannot expand to struct fields
|
2023-07-24 12:05:10 -05:00
|
|
|
|
2023-08-21 08:05:01 -05:00
|
|
|
error: aborting due to 7 previous errors
|
2023-07-23 23:55:47 -05:00
|
|
|
|