fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
446 B14 linesraw
1error[E0382]: borrow of moved value: `a.b`
2  --> $DIR/issue-52669.rs:13:5
3   |
4LL | fn bar(mut a: A) -> B {
5   |        ----- move occurs because `a` has type `A`, which does not implement the `Copy` trait
6LL |     a.b = B;
7LL |     foo(a);
8   |         - value moved here
9LL |     a.b.clone()
10   |     ^^^ value borrowed here after move
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0382`.