summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macro/macro-expand-to-field.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/macro/macro-expand-to-field.stderr')
-rw-r--r--tests/ui/parser/macro/macro-expand-to-field.stderr51
1 files changed, 24 insertions, 27 deletions
diff --git a/tests/ui/parser/macro/macro-expand-to-field.stderr b/tests/ui/parser/macro/macro-expand-to-field.stderr
index adcd032f5..0bb718000 100644
--- a/tests/ui/parser/macro/macro-expand-to-field.stderr
+++ b/tests/ui/parser/macro/macro-expand-to-field.stderr
@@ -1,21 +1,16 @@
error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:16:10
+ --> $DIR/macro-expand-to-field.rs:19:10
|
+LL | struct Struct {
+ | ------ while parsing this struct
+LL |
LL | field!(bar:u128),
| ^ unexpected token after this
|
= note: macros cannot expand to struct fields
error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:22:10
- |
-LL | field!(recovers:()),
- | ^ unexpected token after this
- |
- = note: macros cannot expand to struct fields
-
-error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:28:12
+ --> $DIR/macro-expand-to-field.rs:29:12
|
LL | variant!(whoops),
| ^ unexpected token after this
@@ -23,7 +18,7 @@ LL | variant!(whoops),
= note: macros cannot expand to enum variants
error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:34:12
+ --> $DIR/macro-expand-to-field.rs:35:12
|
LL | variant!(recovers),
| ^ unexpected token after this
@@ -31,44 +26,46 @@ LL | variant!(recovers),
= note: macros cannot expand to enum variants
error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:39:14
+ --> $DIR/macro-expand-to-field.rs:40:14
|
+LL | Data {
+ | ---- while parsing this struct
LL | field!(x:u32),
| ^ unexpected token after this
|
= note: macros cannot expand to struct fields
error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:48:14
+ --> $DIR/macro-expand-to-field.rs:49:14
|
+LL | Named {
+ | ----- while parsing this struct
LL | field!(oopsies:()),
| ^ unexpected token after this
|
= note: macros cannot expand to struct fields
error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:52:14
- |
-LL | field!(oopsies2:()),
- | ^ unexpected token after this
- |
- = note: macros cannot expand to struct fields
-
-error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:61:10
+ --> $DIR/macro-expand-to-field.rs:60:10
|
+LL | union Union {
+ | ----- while parsing this union
+...
LL | field!(oopsies:()),
| ^ unexpected token after this
|
= note: macros cannot expand to union fields
error: unexpected token: `!`
- --> $DIR/macro-expand-to-field.rs:66:10
+ --> $DIR/macro-expand-to-field.rs:73:16
|
-LL | field!(recovers:()),
- | ^ unexpected token after this
+LL | pub struct Lazy {
+ | ---- while parsing this struct
+LL |
+LL | unreachable!()
+ | ^ unexpected token after this
|
- = note: macros cannot expand to union fields
+ = note: macros cannot expand to struct fields
-error: aborting due to 9 previous errors
+error: aborting due to 7 previous errors