blob: fcb9a9b95e64f350460dc4be02bac1170a30a321 [file] [log] [blame] [edit]
//@ run-rustfix
use std::pin::Pin;
struct Foo;
impl Foo {
fn foo(self: Pin<&mut Self>) {}
}
fn main() {
let mut foo = Foo;
let mut foo = Pin::new(&mut foo);
foo.foo();
foo.foo(); //~ ERROR use of moved value
}