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