fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0382]: borrow of partially moved value: `val` 2 --> $DIR/move-deref-coercion.rs:25:5 3 | 4LL | let _val = val.first; 5 | --------- value partially moved here 6LL | val.inner; 7 | ^^^^^^^^^ value borrowed here after partial move 8 | 9 = note: partial move occurs because `val.first` has type `NotCopy`, which does not implement the `Copy` trait 10 = note: borrow occurs due to deref coercion to `NotCopy` 11note: deref defined here 12 --> $DIR/move-deref-coercion.rs:17:5 13 | 14LL | type Target = NotCopy; 15 | ^^^^^^^^^^^ 16 17error[E0382]: borrow of partially moved value: `val` 18 --> $DIR/move-deref-coercion.rs:30:5 19 | 20LL | let _val = val.first; 21 | --------- value partially moved here 22LL | val.inner_method(); 23 | ^^^^^^^^^^^^^^^^^^ value borrowed here after partial move 24 | 25 = note: partial move occurs because `val.first` has type `NotCopy`, which does not implement the `Copy` trait 26 = note: borrow occurs due to deref coercion to `NotCopy` 27note: deref defined here 28 --> $DIR/move-deref-coercion.rs:17:5 29 | 30LL | type Target = NotCopy; 31 | ^^^^^^^^^^^ 32 33error: aborting due to 2 previous errors 34 35For more information about this error, try `rustc --explain E0382`.