fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
161 B11 linesraw
1// run-rustfix
2
3#[derive(Clone)]
4struct Foo;
5impl Foo {
6    fn foo(self) {}
7}
8fn main() {
9    let foo = &Foo;
10    foo.clone().foo(); //~ ERROR cannot move out
11}