fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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