blob: c7a246a64164e70134f18b34e77b241ebac35408 [file] [log] [blame]
use std::pin::Pin;
#[cfg_attr(any(), pin_project::pin_project)]
struct Foo<T> {
f: T,
}
fn main() {
let mut x = Foo { f: 0_u8 };
let _x = Pin::new(&mut x).project(); //~ ERROR E0599
}