aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pin_project/remove-attr-from-struct.stderr
blob: 3173248daa350485da49563f0cb8344744710b60 (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
error: cannot find attribute `pin` in this scope
  --> $DIR/remove-attr-from-struct.rs:10:7
   |
10 |     #[pin] //~ ERROR cannot find attribute `pin` in this scope
   |       ^^^

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

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

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

error[E0277]: `std::marker::PhantomPinned` cannot be unpinned
  --> $DIR/remove-attr-from-struct.rs:26:14
   |
26 |     let _x = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
   |              ^^^^^^^^ within `Foo`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
   |
   = note: required because it appears within the type `Foo`
   = note: required by `std::pin::Pin::<P>::new`

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

error[E0277]: `std::marker::PhantomPinned` cannot be unpinned
  --> $DIR/remove-attr-from-struct.rs:29:14
   |
29 |     let _x = Pin::new(&mut x).project(); //~ ERROR E0277,E0599
   |              ^^^^^^^^ within `Bar`, the trait `std::marker::Unpin` is not implemented for `std::marker::PhantomPinned`
   |
   = note: required because it appears within the type `Bar`
   = note: required by `std::pin::Pin::<P>::new`

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