aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/unsafe_unpin/not-implement-unsafe-unpin.stderr
blob: 0baefe3e1a4f6bc8ab8cdce7aa8797525ac618fe (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0277]: the trait bound `Struct<(), ()>: pin_project::UnsafeUnpin` is not satisfied
  --> $DIR/not-implement-unsafe-unpin.rs:13:16
   |
10 | fn is_unpin<T: Unpin>() {}
   |                ----- required by this bound in `is_unpin`
...
13 |     is_unpin::<Struct<(), ()>>(); //~ ERROR E0277
   |                ^^^^^^^^^^^^^^ the trait `pin_project::UnsafeUnpin` is not implemented for `Struct<(), ()>`
   |
   = note: required because of the requirements on the impl of `pin_project::UnsafeUnpin` for `pin_project::__private::Wrapper<'_, Struct<(), ()>>`
   = note: required because of the requirements on the impl of `std::marker::Unpin` for `Struct<(), ()>`