• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: no rules expected `(`
2 --> tests/ui/pin_project/invalid.rs:7:14
3  |
47 |         #[pin()] //~ ERROR no rules expected the token `(`
5  |              ^ no rules expected this token in macro call
6  |
7note: while trying to match `]`
8 --> src/lib.rs
9  |
10  |                 $(#[$pin:ident])?
11  |                               ^
12
13error: no rules expected `(`
14 --> tests/ui/pin_project/invalid.rs:7:14
15  |
167 |         #[pin()] //~ ERROR no rules expected the token `(`
17  |              ^ no rules expected this token in macro call
18  |
19note: while trying to match `]`
20 --> src/lib.rs
21  |
22  |                 $(#[$pin:ident])?
23  |                               ^
24
25error: no rules expected `#`
26  --> tests/ui/pin_project/invalid.rs:22:9
27   |
2822 |         #[pin] //~ ERROR no rules expected the token `#`
29   |         ^ no rules expected this token in macro call
30   |
31note: while trying to match meta-variable `$field_vis:vis`
32  --> src/lib.rs
33   |
34   |                 $field_vis:vis $field:ident: $field_ty:ty
35   |                 ^^^^^^^^^^^^^^
36
37error: no rules expected `#`
38  --> tests/ui/pin_project/invalid.rs:22:9
39   |
4022 |         #[pin] //~ ERROR no rules expected the token `#`
41   |         ^ no rules expected this token in macro call
42   |
43note: while trying to match meta-variable `$field_vis:vis`
44  --> src/lib.rs
45   |
46   |                 $field_vis:vis $field:ident: $field_ty:ty
47   |                 ^^^^^^^^^^^^^^
48
49error: cannot find attribute `pin` in this scope
50  --> tests/ui/pin_project/invalid.rs:13:7
51   |
5213 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
53   |       ^^^
54