fork/rust

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

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

master
493 B16 linesraw
1error: borrow of moved value
2  --> $DIR/borrowck-pat-by-move-and-ref-inverse-promotion.rs:6:9
3   |
4LL |     let a @ ref b = U;
5   |         ^   ----- value borrowed here after move
6   |         |
7   |         value moved into `a` here
8   |         move occurs because `a` has type `U` which does not implement the `Copy` trait
9   |
10help: borrow this binding in the pattern to avoid moving the value
11   |
12LL |     let ref a @ ref b = U;
13   |         +++
14
15error: aborting due to previous error
16