// 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 { #[pin] f: T, } // unsound Unpin impl impl Unpin for Struct {} fn is_unpin() {} fn main() { is_unpin::>() }