fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
394 B12 linesraw
1error: borrow of moved value
2  --> $DIR/borrowck-pat-by-move-and-ref-inverse-promotion.rs:9:9
3   |
4LL |     let a @ ref b = U;
5   |         -^^^-----
6   |         |   |
7   |         |   value borrowed here after move
8   |         value moved into `a` here
9   |         move occurs because `a` has type `main::U` which does not implement the `Copy` trait
10
11error: aborting due to previous error
12