diff options
Diffstat (limited to 'tests/ui/unsafe_unpin/not-implement-unsafe-unpin.stderr')
-rw-r--r-- | tests/ui/unsafe_unpin/not-implement-unsafe-unpin.stderr | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/unsafe_unpin/not-implement-unsafe-unpin.stderr b/tests/ui/unsafe_unpin/not-implement-unsafe-unpin.stderr new file mode 100644 index 0000000..0baefe3 --- /dev/null +++ b/tests/ui/unsafe_unpin/not-implement-unsafe-unpin.stderr @@ -0,0 +1,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<(), ()>` |