• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:5
23   |
2435 |     is_unpin::<A>(); //~ ERROR E0277
25   |     ^^^^^^^^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
26   |
27   = note: consider using `Box::pin`
28note: required because it appears within the type `A`
29  --> tests/ui/pin_project/remove-attr-from-struct.rs:10:8
30   |
3110 | struct A {
32   |        ^
33note: required by a bound in `is_unpin`
34  --> tests/ui/pin_project/remove-attr-from-struct.rs:6:16
35   |
366  | fn is_unpin<T: Unpin>() {}
37   |                ^^^^^ required by this bound in `is_unpin`
38
39error[E0277]: `PhantomPinned` cannot be unpinned
40  --> tests/ui/pin_project/remove-attr-from-struct.rs:36:5
41   |
4236 |     is_unpin::<B>(); //~ ERROR E0277
43   |     ^^^^^^^^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
44   |
45   = note: consider using `Box::pin`
46note: required because it appears within the type `B`
47  --> tests/ui/pin_project/remove-attr-from-struct.rs:17:8
48   |
4917 | struct B {
50   |        ^
51note: required by a bound in `is_unpin`
52  --> tests/ui/pin_project/remove-attr-from-struct.rs:6:16
53   |
546  | fn is_unpin<T: Unpin>() {}
55   |                ^^^^^ required by this bound in `is_unpin`
56
57error[E0277]: `PhantomPinned` cannot be unpinned
58   --> tests/ui/pin_project/remove-attr-from-struct.rs:40:22
59    |
6040  |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
61    |             -------- ^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
62    |             |
63    |             required by a bound introduced by this call
64    |
65    = note: consider using `Box::pin`
66note: required because it appears within the type `A`
67   --> tests/ui/pin_project/remove-attr-from-struct.rs:10:8
68    |
6910  | struct A {
70    |        ^
71note: required by a bound in `Pin::<P>::new`
72   --> $RUST/core/src/pin.rs
73    |
74    | impl<P: Deref<Target: Unpin>> Pin<P> {
75    |                       ^^^^^ required by this bound in `Pin::<P>::new`
76
77error[E0599]: no method named `project` found for struct `Pin<&mut A>` in the current scope
78  --> tests/ui/pin_project/remove-attr-from-struct.rs:40:30
79   |
8040 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
81   |                              ^^^^^^^ method not found in `Pin<&mut A>`
82
83error[E0277]: `PhantomPinned` cannot be unpinned
84   --> tests/ui/pin_project/remove-attr-from-struct.rs:43:22
85    |
8643  |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
87    |             -------- ^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
88    |             |
89    |             required by a bound introduced by this call
90    |
91    = note: consider using `Box::pin`
92note: required because it appears within the type `B`
93   --> tests/ui/pin_project/remove-attr-from-struct.rs:17:8
94    |
9517  | struct B {
96    |        ^
97note: required by a bound in `Pin::<P>::new`
98   --> $RUST/core/src/pin.rs
99    |
100    | impl<P: Deref<Target: Unpin>> Pin<P> {
101    |                       ^^^^^ required by this bound in `Pin::<P>::new`
102
103error[E0599]: no method named `project` found for struct `Pin<&mut B>` in the current scope
104  --> tests/ui/pin_project/remove-attr-from-struct.rs:43:30
105   |
10643 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
107   |                              ^^^^^^^ method not found in `Pin<&mut B>`
108