blob: 0bd4a32cc1ab97be2bc79e7f6ee0b0c0027f1a28 [file] [log] [blame]
// NB: If you change this test, change 'overlapping_marker_traits.rs' at the same time.
use pin_project::pin_project;
use std::marker::PhantomPinned;
#[pin_project] //~ ERROR E0119
struct Struct<T> {
#[pin]
x: T,
}
// unsound Unpin impl
impl<T> Unpin for Struct<T> {}
fn is_unpin<T: Unpin>() {}
fn main() {
is_unpin::<Struct<PhantomPinned>>()
}