• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: #[pin_project] attribute has been removed
2  --> tests/ui/pin_project/remove-attr-from-struct.rs:24:1
3   |
424 | #[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:20:7
11   |
1220 |     #[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:13:7
17   |
1813 |     #[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:37:16
23   |
2437 |     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:12:8
31   |
3212 | struct A {
33   |        ^
34note: required by a bound in `is_unpin`
35  --> tests/ui/pin_project/remove-attr-from-struct.rs:8:16
36   |
378  | 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:38:16
42   |
4338 |     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:19:8
50   |
5119 | struct B {
52   |        ^
53note: required by a bound in `is_unpin`
54  --> tests/ui/pin_project/remove-attr-from-struct.rs:8:16
55   |
568  | 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:42:22
61   |
6242 |     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:12:8
71   |
7212 | struct A {
73   |        ^
74note: required by a bound in `Pin::<Ptr>::new`
75  --> $RUST/core/src/pin.rs
76   |
77   | impl<Ptr: Deref<Target: Unpin>> Pin<Ptr> {
78   |                         ^^^^^ required by this bound in `Pin::<Ptr>::new`
79...
80   |     pub const fn new(pointer: Ptr) -> Pin<Ptr> {
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:42:30
85   |
8642 |     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:45:22
91   |
9245 |     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:19:8
101   |
10219 | struct B {
103   |        ^
104note: required by a bound in `Pin::<Ptr>::new`
105  --> $RUST/core/src/pin.rs
106   |
107   | impl<Ptr: Deref<Target: Unpin>> Pin<Ptr> {
108   |                         ^^^^^ required by this bound in `Pin::<Ptr>::new`
109...
110   |     pub const fn new(pointer: Ptr) -> Pin<Ptr> {
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:45:30
115   |
11645 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
117   |                              ^^^^^^^ method not found in `Pin<&mut B>`
118