| 1 |
error: #[pin_project] attribute has been removed |
| 2 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:22:1 |
| 3 |
| |
| 4 |
22 | #[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 |
|
| 9 |
error: cannot find attribute `pin` in this scope |
| 10 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:18:7 |
| 11 |
| |
| 12 |
18 | #[pin] //~ ERROR cannot find attribute `pin` in this scope |
| 13 |
| ^^^ |
| 14 |
|
| 15 |
error: cannot find attribute `pin` in this scope |
| 16 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:11:7 |
| 17 |
| |
| 18 |
11 | #[pin] //~ ERROR cannot find attribute `pin` in this scope |
| 19 |
| ^^^ |
| 20 |
|
| 21 |
error[E0277]: `PhantomPinned` cannot be unpinned |
| 22 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:35:16 |
| 23 |
| |
| 24 |
35 | 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 |
| 29 |
note: required because it appears within the type `A` |
| 30 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:10:8 |
| 31 |
| |
| 32 |
10 | struct A { |
| 33 |
| ^ |
| 34 |
note: required by a bound in `is_unpin` |
| 35 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:6:16 |
| 36 |
| |
| 37 |
6 | fn is_unpin<T: Unpin>() {} |
| 38 |
| ^^^^^ required by this bound in `is_unpin` |
| 39 |
|
| 40 |
error[E0277]: `PhantomPinned` cannot be unpinned |
| 41 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:36:16 |
| 42 |
| |
| 43 |
36 | 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 |
| 48 |
note: required because it appears within the type `B` |
| 49 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:17:8 |
| 50 |
| |
| 51 |
17 | struct B { |
| 52 |
| ^ |
| 53 |
note: required by a bound in `is_unpin` |
| 54 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:6:16 |
| 55 |
| |
| 56 |
6 | fn is_unpin<T: Unpin>() {} |
| 57 |
| ^^^^^ required by this bound in `is_unpin` |
| 58 |
|
| 59 |
error[E0277]: `PhantomPinned` cannot be unpinned |
| 60 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:40:22 |
| 61 |
| |
| 62 |
40 | 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 |
| 69 |
note: required because it appears within the type `A` |
| 70 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:10:8 |
| 71 |
| |
| 72 |
10 | struct A { |
| 73 |
| ^ |
| 74 |
note: 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 |
|
| 83 |
error[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 |
| |
| 86 |
40 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 |
| 87 |
| ^^^^^^^ method not found in `Pin<&mut A>` |
| 88 |
|
| 89 |
error[E0277]: `PhantomPinned` cannot be unpinned |
| 90 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:43:22 |
| 91 |
| |
| 92 |
43 | 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 |
| 99 |
note: required because it appears within the type `B` |
| 100 |
--> tests/ui/pin_project/remove-attr-from-struct.rs:17:8 |
| 101 |
| |
| 102 |
17 | struct B { |
| 103 |
| ^ |
| 104 |
note: 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 |
|
| 113 |
error[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 |
| |
| 116 |
43 | let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599 |
| 117 |
| ^^^^^^^ method not found in `Pin<&mut B>` |