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