1error: #[pin_project] attribute has been removed
2  --> tests/ui/pin_project/remove-attr-from-struct.rs:22:1
3   |
422 | #[pin_project] //~ ERROR has been removed
5   | ^^^^^^^^^^^^^^
6   |
7   = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)
8
9error: cannot find attribute `pin` in this scope
10  --> tests/ui/pin_project/remove-attr-from-struct.rs:18:7
11   |
1218 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
13   |       ^^^
14
15error: cannot find attribute `pin` in this scope
16  --> tests/ui/pin_project/remove-attr-from-struct.rs:11:7
17   |
1811 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
19   |       ^^^
20
21error[E0277]: `PhantomPinned` cannot be unpinned
22  --> tests/ui/pin_project/remove-attr-from-struct.rs:35:16
23   |
2435 |     is_unpin::<A>(); //~ ERROR E0277
25   |                ^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
26   |
27   = note: consider using the `pin!` macro
28           consider using `Box::pin` if you need to access the pinned value outside of the current scope
29note: required because it appears within the type `A`
30  --> tests/ui/pin_project/remove-attr-from-struct.rs:10:8
31   |
3210 | struct A {
33   |        ^
34note: required by a bound in `is_unpin`
35  --> tests/ui/pin_project/remove-attr-from-struct.rs:6:16
36   |
376  | fn is_unpin<T: Unpin>() {}
38   |                ^^^^^ required by this bound in `is_unpin`
39
40error[E0277]: `PhantomPinned` cannot be unpinned
41  --> tests/ui/pin_project/remove-attr-from-struct.rs:36:16
42   |
4336 |     is_unpin::<B>(); //~ ERROR E0277
44   |                ^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
45   |
46   = note: consider using the `pin!` macro
47           consider using `Box::pin` if you need to access the pinned value outside of the current scope
48note: required because it appears within the type `B`
49  --> tests/ui/pin_project/remove-attr-from-struct.rs:17:8
50   |
5117 | struct B {
52   |        ^
53note: required by a bound in `is_unpin`
54  --> tests/ui/pin_project/remove-attr-from-struct.rs:6:16
55   |
566  | fn is_unpin<T: Unpin>() {}
57   |                ^^^^^ required by this bound in `is_unpin`
58
59error[E0277]: `PhantomPinned` cannot be unpinned
60  --> tests/ui/pin_project/remove-attr-from-struct.rs:40:22
61   |
6240 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
63   |             -------- ^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
64   |             |
65   |             required by a bound introduced by this call
66   |
67   = note: consider using the `pin!` macro
68           consider using `Box::pin` if you need to access the pinned value outside of the current scope
69note: required because it appears within the type `A`
70  --> tests/ui/pin_project/remove-attr-from-struct.rs:10:8
71   |
7210 | struct A {
73   |        ^
74note: required by a bound in `Pin::<P>::new`
75  --> $RUST/core/src/pin.rs
76   |
77   | impl<P: Deref<Target: Unpin>> Pin<P> {
78   |                       ^^^^^ required by this bound in `Pin::<P>::new`
79...
80   |     pub const fn new(pointer: P) -> Pin<P> {
81   |                  --- required by a bound in this associated function
82
83error[E0599]: no method named `project` found for struct `Pin<&mut A>` in the current scope
84  --> tests/ui/pin_project/remove-attr-from-struct.rs:40:30
85   |
8640 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
87   |                              ^^^^^^^ method not found in `Pin<&mut A>`
88
89error[E0277]: `PhantomPinned` cannot be unpinned
90  --> tests/ui/pin_project/remove-attr-from-struct.rs:43:22
91   |
9243 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
93   |             -------- ^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
94   |             |
95   |             required by a bound introduced by this call
96   |
97   = note: consider using the `pin!` macro
98           consider using `Box::pin` if you need to access the pinned value outside of the current scope
99note: required because it appears within the type `B`
100  --> tests/ui/pin_project/remove-attr-from-struct.rs:17:8
101   |
10217 | struct B {
103   |        ^
104note: required by a bound in `Pin::<P>::new`
105  --> $RUST/core/src/pin.rs
106   |
107   | impl<P: Deref<Target: Unpin>> Pin<P> {
108   |                       ^^^^^ required by this bound in `Pin::<P>::new`
109...
110   |     pub const fn new(pointer: P) -> Pin<P> {
111   |                  --- required by a bound in this associated function
112
113error[E0599]: no method named `project` found for struct `Pin<&mut B>` in the current scope
114  --> tests/ui/pin_project/remove-attr-from-struct.rs:43:30
115   |
11643 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
117   |                              ^^^^^^^ method not found in `Pin<&mut B>`
118