]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/suggest-clone.rs
Move /src/test to /tests
[rust.git] / tests / ui / moves / suggest-clone.rs
1 // run-rustfix
2
3 #[derive(Clone)]
4 struct Foo;
5 impl Foo {
6     fn foo(self) {}
7 }
8 fn main() {
9     let foo = &Foo;
10     foo.foo(); //~ ERROR cannot move out
11 }