error[E0599]: no method named `project` found for struct `Pin<&mut Foo>` in the current scope --> $DIR/cfg_attr-resolve.rs:10:31 | 10 | let _x = Pin::new(&mut x).project(); //~ ERROR E0599 | ^^^^^^^ method not found in `Pin<&mut Foo>`