aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/remove-attr-from-struct.stderr
blob: 57cf21d2aa6be51977e37a8f68ec9ab2370c2cef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
error: #[pin_project] attribute has been removed
  --> $DIR/remove-attr-from-struct.rs:22:1
   |
22 | #[pin_project] //~ ERROR has been removed
   | ^^^^^^^^^^^^^^
   |
   = note: this error originates in the derive macro `::pin_project::__private::__PinProjectInternalDerive` (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> $DIR/remove-attr-from-struct.rs:18:7
   |
18 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
   |       ^^^

error: cannot find attribute `pin` in this scope
  --> $DIR/remove-attr-from-struct.rs:11:7
   |
11 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
   |       ^^^

error[E0277]: `PhantomPinned` cannot be unpinned
  --> $DIR/remove-attr-from-struct.rs:35:5
   |
6  | fn is_unpin<T: Unpin>() {}
   |                ----- required by this bound in `is_unpin`
...
35 |     is_unpin::<A>(); //~ ERROR E0277
   |     ^^^^^^^^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
   |
   = note: consider using `Box::pin`
note: required because it appears within the type `A`
  --> $DIR/remove-attr-from-struct.rs:10:8
   |
10 | struct A {
   |        ^

error[E0277]: `PhantomPinned` cannot be unpinned
  --> $DIR/remove-attr-from-struct.rs:36:5
   |
6  | fn is_unpin<T: Unpin>() {}
   |                ----- required by this bound in `is_unpin`
...
36 |     is_unpin::<B>(); //~ ERROR E0277
   |     ^^^^^^^^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
   |
   = note: consider using `Box::pin`
note: required because it appears within the type `B`
  --> $DIR/remove-attr-from-struct.rs:17:8
   |
17 | struct B {
   |        ^

error[E0277]: `PhantomPinned` cannot be unpinned
   --> $DIR/remove-attr-from-struct.rs:40:13
    |
40  |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
    |             ^^^^^^^^ within `A`, the trait `Unpin` is not implemented for `PhantomPinned`
    |
    = note: consider using `Box::pin`
note: required because it appears within the type `A`
   --> $DIR/remove-attr-from-struct.rs:10:8
    |
10  | struct A {
    |        ^
note: required by `Pin::<P>::new`

error[E0599]: no method named `project` found for struct `Pin<&mut A>` in the current scope
  --> $DIR/remove-attr-from-struct.rs:40:30
   |
40 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
   |                              ^^^^^^^ method not found in `Pin<&mut A>`

error[E0277]: `PhantomPinned` cannot be unpinned
   --> $DIR/remove-attr-from-struct.rs:43:13
    |
43  |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
    |             ^^^^^^^^ within `B`, the trait `Unpin` is not implemented for `PhantomPinned`
    |
    = note: consider using `Box::pin`
note: required because it appears within the type `B`
   --> $DIR/remove-attr-from-struct.rs:17:8
    |
17  | struct B {
    |        ^
note: required by `Pin::<P>::new`

error[E0599]: no method named `project` found for struct `Pin<&mut B>` in the current scope
  --> $DIR/remove-attr-from-struct.rs:43:30
   |
43 |     let _ = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
   |                              ^^^^^^^ method not found in `Pin<&mut B>`