#![feature(negative_impls)] #![deny(suspicious_auto_trait_impls)] // https://rust-lang.zulipchat.com/#narrow/stream/213817-t-lang/topic/design.20meeting.3A.20backlog.20bonanza/near/269471299 // https://github.com/taiki-e/pin-project/issues/340 #[pin_project::pin_project] struct Foo { #[pin] pinned: Pinned, unpinned: Unpinned, } struct MyPhantomPinned {} impl !Unpin for MyPhantomPinned {} impl Unpin for Foo {} fn is_unpin() {} fn main() { is_unpin::>() }