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