]> git.lizzy.rs Git - rust.git/blob - tests/ui/moves/suggest-clone.fixed
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / moves / suggest-clone.fixed
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.clone().foo(); //~ ERROR cannot move out
11 }