Debian Codegraph @

third_party/rust/pin-project-lite/tests/ui/pin_project/unsupported.stderr

raw
1 error: no rules expected the token `}`
2 --> tests/ui/pin_project/unsupported.rs:5:1
3 |
4 5 | / pin_project! {
5 6 | | struct Struct1 {} //~ ERROR no rules expected the token `}`
6 7 | | }
7 | |_^ no rules expected this token in macro call
8 |
9 note: while trying to match meta-variable `$field_vis:vis`
10 --> src/lib.rs
11 |
12 | $field_vis:vis $field:ident: $field_ty:ty
13 | ^^^^^^^^^^^^^^
14 = 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)
15
16 error: no rules expected the token `}`
17 --> tests/ui/pin_project/unsupported.rs:5:1
18 |
19 5 | / pin_project! {
20 6 | | struct Struct1 {} //~ ERROR no rules expected the token `}`
21 7 | | }
22 | |_^ no rules expected this token in macro call
23 |
24 note: while trying to match meta-variable `$field_vis:vis`
25 --> src/lib.rs
26 |
27 | $field_vis:vis $field:ident: $field_ty:ty
28 | ^^^^^^^^^^^^^^
29 = 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)
30
31 error: no rules expected the token `(`
32 --> tests/ui/pin_project/unsupported.rs:10:19
33 |
34 10 | struct Struct2(); //~ ERROR no rules expected the token `(`
35 | ^ no rules expected this token in macro call
36 |
37 note: while trying to match `{`
38 --> src/lib.rs
39 |
40 | {
41 | ^
42
43 error: no rules expected the token `;`
44 --> tests/ui/pin_project/unsupported.rs:14:19
45 |
46 14 | struct Struct3; //~ ERROR no rules expected the token `;`
47 | ^ no rules expected this token in macro call
48 |
49 note: while trying to match `{`
50 --> src/lib.rs
51 |
52 | {
53 | ^
54
55 error: no rules expected the token `(`
56 --> tests/ui/pin_project/unsupported.rs:19:10
57 |
58 19 | A(u8)
59 | ^ no rules expected this token in macro call
60 |
61 note: while trying to match `}`
62 --> src/lib.rs
63 |
64 | }
65 | ^
66
67 error: no rules expected the token `(`
68 --> tests/ui/pin_project/unsupported.rs:19:10
69 |
70 19 | A(u8)
71 | ^ no rules expected this token in macro call
72 |
73 note: while trying to match `}`
74 --> src/lib.rs
75 |
76 | }
77 | ^
78
79 error: no rules expected the token `union`
80 --> tests/ui/pin_project/unsupported.rs:23:1
81 |
82 23 | / pin_project! {
83 24 | | union Union { //~ ERROR no rules expected the token `union`
84 25 | | x: u8,
85 26 | | }
86 27 | | }
87 | |_^ no rules expected this token in macro call
88 |
89 ::: src/lib.rs
90 |
91 | [$(#[$attrs:meta])* $vis:vis $struct_ty_ident:ident $ident:ident]
92 | ----------------------
93 |
94 note: while trying to match `struct`
95 --> src/lib.rs
96 |
97 | [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
98 | ^^^^^^
99 = note: captured metavariables except for `:tt`, `:ident` and `:lifetime` cannot be compared to other tokens
100 = note: see <https://doc.rust-lang.org/nightly/reference/macros-by-example.html#forwarding-a-matched-fragment> for more information
101 = 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)
102
103 error: no rules expected the token `union`
104 --> tests/ui/pin_project/unsupported.rs:23:1
105 |
106 23 | / pin_project! {
107 24 | | union Union { //~ ERROR no rules expected the token `union`
108 25 | | x: u8,
109 26 | | }
110 27 | | }
111 | |_^ no rules expected this token in macro call
112 |
113 ::: src/lib.rs
114 |
115 | [$(#[$attrs:meta])* $vis:vis $struct_ty_ident:ident $ident:ident]
116 | ----------------------
117 |
118 note: while trying to match `struct`
119 --> src/lib.rs
120 |
121 | [$(#[$attrs:meta])* $vis:vis struct $ident:ident]
122 | ^^^^^^
123 = note: captured metavariables except for `:tt`, `:ident` and `:lifetime` cannot be compared to other tokens
124 = note: see <https://doc.rust-lang.org/nightly/reference/macros-by-example.html#forwarding-a-matched-fragment> for more information
125 = 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)