blob: 623a886722b877fc23fd48eb50a789fcf3f82d09 (
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
|
error: no rules expected the token `struct`
--> tests/ui/pin_project/invalid.rs:3:1
|
3 | / pin_project! {
4 | | struct A<T> {
5 | | #[pin()] //~ ERROR no rules expected the token `(`
6 | | pinned: T,
7 | | }
8 | | }
| |_^ 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)
error: no rules expected the token `struct`
--> tests/ui/pin_project/invalid.rs:3:1
|
3 | / pin_project! {
4 | | struct A<T> {
5 | | #[pin()] //~ ERROR no rules expected the token `(`
6 | | pinned: T,
7 | | }
8 | | }
| |_^ 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)
error: no rules expected the token `struct`
--> tests/ui/pin_project/invalid.rs:17:1
|
17 | / pin_project! {
18 | | struct C<T> {
19 | | #[pin]
20 | | #[pin] //~ ERROR no rules expected the token `#`
21 | | pinned: T,
22 | | }
23 | | }
| |_^ 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)
error: no rules expected the token `struct`
--> tests/ui/pin_project/invalid.rs:17:1
|
17 | / pin_project! {
18 | | struct C<T> {
19 | | #[pin]
20 | | #[pin] //~ ERROR no rules expected the token `#`
21 | | pinned: T,
22 | | }
23 | | }
| |_^ 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)
error: cannot find attribute `pin` in this scope
--> tests/ui/pin_project/invalid.rs:11:7
|
11 | #[pin] //~ ERROR cannot find attribute `pin` in this scope
| ^^^
|