• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: no rules expected the token `struct`
2 --> tests/ui/pin_project/invalid.rs:3:1
3  |
43 | / pin_project! {
54 | |     struct A<T> {
65 | |         #[pin()] //~ ERROR no rules expected the token `(`
76 | |         pinned: T,
87 | |     }
98 | | }
10  | |_^ no rules expected this token in macro call
11  |
12  = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
13
14error: no rules expected the token `struct`
15 --> tests/ui/pin_project/invalid.rs:3:1
16  |
173 | / pin_project! {
184 | |     struct A<T> {
195 | |         #[pin()] //~ ERROR no rules expected the token `(`
206 | |         pinned: T,
217 | |     }
228 | | }
23  | |_^ no rules expected this token in macro call
24  |
25  = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
26
27error: no rules expected the token `struct`
28  --> tests/ui/pin_project/invalid.rs:17:1
29   |
3017 | / pin_project! {
3118 | |     struct C<T> {
3219 | |         #[pin]
3320 | |         #[pin] //~ ERROR no rules expected the token `#`
3421 | |         pinned: T,
3522 | |     }
3623 | | }
37   | |_^ no rules expected this token in macro call
38   |
39   = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
40
41error: no rules expected the token `struct`
42  --> tests/ui/pin_project/invalid.rs:17:1
43   |
4417 | / pin_project! {
4518 | |     struct C<T> {
4619 | |         #[pin]
4720 | |         #[pin] //~ ERROR no rules expected the token `#`
4821 | |         pinned: T,
4922 | |     }
5023 | | }
51   | |_^ no rules expected this token in macro call
52   |
53   = note: this error originates in the macro `$crate::__pin_project_expand` (in Nightly builds, run with -Z macro-backtrace for more info)
54
55error: cannot find attribute `pin` in this scope
56  --> tests/ui/pin_project/invalid.rs:11:7
57   |
5811 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
59   |       ^^^
60