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