use pin_project_lite::pin_project; use std::marker::PhantomPinned; pin_project! { struct Foo { #[pin] inner: T, } } struct __Origin {} impl Unpin for __Origin {} fn is_unpin() {} fn main() { is_unpin::>(); //~ ERROR E0277 }