aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/unsupported.stderr
blob: f1d3b9c9d2a2e04ad3457eac704b009da96d6327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
error: no rules expected the token `}`
 --> tests/ui/pin_project/unsupported.rs:3:1
  |
3 | / pin_project! {
4 | |     struct Struct1 {} //~ ERROR no rules expected the token `}`
5 | | }
  | |_^ no rules expected this token in macro call
  |
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
  |
3 | / pin_project! {
4 | |     struct Struct1 {} //~ ERROR no rules expected the token `}`
5 | | }
  | |_^ no rules expected this token in macro call
  |
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 `(`
  --> tests/ui/pin_project/unsupported.rs:17:10
   |
17 |         A(u8)
   |          ^ 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:17:10
   |
17 |         A(u8)
   |          ^ no rules expected this token in macro call
   |
note: while trying to match `}`
  --> src/lib.rs
   |
   |         }
   |         ^

error: no rules expected the token `union`
  --> tests/ui/pin_project/unsupported.rs:21:1
   |
21 | / pin_project! {
22 | |     union Union { //~ ERROR no rules expected the token `union`
23 | |         x: u8,
24 | |     }
25 | | }
   | |_^ no rules expected this token in macro call
   |
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
   |
21 | / pin_project! {
22 | |     union Union { //~ ERROR no rules expected the token `union`
23 | |         x: u8,
24 | |     }
25 | | }
   | |_^ no rules expected this token in macro call
   |
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)