• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: #[pin_project] attribute has been removed
2  --> $DIR/remove-attr-from-struct.rs:21:1
3   |
421 | #[pin_project] //~ ERROR has been removed
5   | ^^^^^^^^^^^^^^
6   |
7   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
8
9error: cannot find attribute `pin` in this scope
10  --> $DIR/remove-attr-from-struct.rs:17:7
11   |
1217 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
13   |       ^^^
14
15error: cannot find attribute `pin` in this scope
16  --> $DIR/remove-attr-from-struct.rs:10:7
17   |
1810 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
19   |       ^^^
20
21error[E0277]: `PhantomPinned` cannot be unpinned
22  --> $DIR/remove-attr-from-struct.rs:34:5
23   |
245  | fn is_unpin<T: Unpin>() {}
25   |                ----- required by this bound in `is_unpin`
26...
2734 |     is_unpin::<A>(); //~ ERROR E0277
28   |     ^^^^^^^^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
29   |
30   = note: required because it appears within the type `A`
31
32error[E0277]: `PhantomPinned` cannot be unpinned
33  --> $DIR/remove-attr-from-struct.rs:35:5
34   |
355  | fn is_unpin<T: Unpin>() {}
36   |                ----- required by this bound in `is_unpin`
37...
3835 |     is_unpin::<B>(); //~ ERROR E0277
39   |     ^^^^^^^^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
40   |
41   = note: required because it appears within the type `B`
42
43error[E0277]: `PhantomPinned` cannot be unpinned
44  --> $DIR/remove-attr-from-struct.rs:39:13
45   |
4639 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
47   |             ^^^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
48   |
49   = note: required because it appears within the type `A`
50   = note: required by `Pin::<P>::new`
51
52error[E0599]: no method named `project` found for struct `Pin<&mut A>` in the current scope
53  --> $DIR/remove-attr-from-struct.rs:39:30
54   |
5539 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
56   |                              ^^^^^^^ method not found in `Pin<&mut A>`
57
58error[E0277]: `PhantomPinned` cannot be unpinned
59  --> $DIR/remove-attr-from-struct.rs:42:13
60   |
6142 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
62   |             ^^^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
63   |
64   = note: required because it appears within the type `B`
65   = note: required by `Pin::<P>::new`
66
67error[E0599]: no method named `project` found for struct `Pin<&mut B>` in the current scope
68  --> $DIR/remove-attr-from-struct.rs:42:30
69   |
7042 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
71   |                              ^^^^^^^ method not found in `Pin<&mut B>`
72