blob: 127cd1a7e063a7ec11657440f59a3dd6b2a45f2b [file] [log] [blame]
// Note: If you change this test, change 'marker_trait_attr.rs' at the same time.
use pin_project::pin_project;
use std::marker::PhantomPinned;
#[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>>()
}