aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/unsupported.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pin_project/unsupported.stderr')
-rw-r--r--tests/ui/pin_project/unsupported.stderr80
1 files changed, 58 insertions, 22 deletions
diff --git a/tests/ui/pin_project/unsupported.stderr b/tests/ui/pin_project/unsupported.stderr
index a7d215a..f1d3b9c 100644
--- a/tests/ui/pin_project/unsupported.stderr
+++ b/tests/ui/pin_project/unsupported.stderr
@@ -6,7 +6,12 @@ error: no rules expected the token `}`
5 | | }
| |_^ no rules expected this token in macro call
|
- = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
+note: while trying to match meta-variable `$field_vis:vis`
+ --> src/lib.rs
+ |
+ | $field_vis:vis $field:ident: $field_ty:ty
+ | ^^^^^^^^^^^^^^
+ = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `}`
--> tests/ui/pin_project/unsupported.rs:3:1
@@ -16,43 +21,60 @@ error: no rules expected the token `}`
5 | | }
| |_^ no rules expected this token in macro call
|
- = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
+note: while trying to match meta-variable `$field_vis:vis`
+ --> src/lib.rs
+ |
+ | $field_vis:vis $field:ident: $field_ty:ty
+ | ^^^^^^^^^^^^^^
+ = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `(`
--> tests/ui/pin_project/unsupported.rs:8:19
|
8 | struct Struct2(); //~ ERROR no rules expected the token `(`
| ^ no rules expected this token in macro call
+ |
+note: while trying to match `{`
+ --> src/lib.rs
+ |
+ | {
+ | ^
error: no rules expected the token `;`
--> tests/ui/pin_project/unsupported.rs:12:19
|
12 | struct Struct3; //~ ERROR no rules expected the token `;`
| ^ no rules expected this token in macro call
+ |
+note: while trying to match `{`
+ --> src/lib.rs
+ |
+ | {
+ | ^
-error: no rules expected the token `enum`
- --> tests/ui/pin_project/unsupported.rs:15:1
+error: no rules expected the token `(`
+ --> tests/ui/pin_project/unsupported.rs:17:10
|
-15 | / pin_project! {
-16 | | enum Enum { //~ ERROR no rules expected the token `enum`
-17 | | A(u8)
-18 | | }
-19 | | }
- | |_^ no rules expected this token in macro call
+17 | A(u8)
+ | ^ no rules expected this token in macro call
+ |
+note: while trying to match `}`
+ --> src/lib.rs
|
- = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
+ | }
+ | ^
-error: no rules expected the token `enum`
- --> tests/ui/pin_project/unsupported.rs:15:1
+error: no rules expected the token `(`
+ --> tests/ui/pin_project/unsupported.rs:17:10
|
-15 | / pin_project! {
-16 | | enum Enum { //~ ERROR no rules expected the token `enum`
-17 | | A(u8)
-18 | | }
-19 | | }
- | |_^ no rules expected this token in macro call
+17 | A(u8)
+ | ^ no rules expected this token in macro call
|
- = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
+note: while trying to match `}`
+ --> src/lib.rs
+ |
+ | }
+ | ^
error: no rules expected the token `union`
--> tests/ui/pin_project/unsupported.rs:21:1
@@ -64,7 +86,14 @@ error: no rules expected the token `union`
25 | | }
| |_^ no rules expected this token in macro call
|
- = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
+note: while trying to match `struct`
+ --> src/lib.rs
+ |
+ | [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
+ | ^^^^^^
+ = note: captured metavariables except for `:tt`, `:ident` and `:lifetime` cannot be compared to other tokens
+ = note: see <https://doc.rust-lang.org/nightly/reference/macros-by-example.html#forwarding-a-matched-fragment> for more information
+ = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
error: no rules expected the token `union`
--> tests/ui/pin_project/unsupported.rs:21:1
@@ -76,4 +105,11 @@ error: no rules expected the token `union`
25 | | }
| |_^ no rules expected this token in macro call
|
- = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
+note: while trying to match `struct`
+ --> src/lib.rs
+ |
+ | [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
+ | ^^^^^^
+ = note: captured metavariables except for `:tt`, `:ident` and `:lifetime` cannot be compared to other tokens
+ = note: see <https://doc.rust-lang.org/nightly/reference/macros-by-example.html#forwarding-a-matched-fragment> for more information
+ = note: this error originates in the macro `$crate::__pin_project_expand` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)