]> git.proxmox.com Git - rustc.git/blame - src/test/ui/pattern/bindings-after-at/copy-and-move-mixed.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / pattern / bindings-after-at / copy-and-move-mixed.stderr
CommitLineData
29967ef6 1error[E0382]: use of partially moved value
94222f64 2 --> $DIR/copy-and-move-mixed.rs:12:9
dfeec247
XL
3 |
4LL | let a @ NC(b, c @ NC(d, e)) = NC(C, NC(C, C));
f2b60f7d
FG
5 | ^ - value partially moved here
6 | |
29967ef6 7 | value used here after partial move
dfeec247 8 |
29967ef6 9 = note: partial move occurs because value has type `NC<C, C>`, which does not implement the `Copy` trait
487cf647
FG
10help: borrow this binding in the pattern to avoid moving the value
11 |
12LL | let ref a @ NC(b, ref c @ NC(d, e)) = NC(C, NC(C, C));
13 | +++ +++
dfeec247 14
29967ef6 15error: aborting due to previous error
dfeec247 16
74b04a01 17For more information about this error, try `rustc --explain E0382`.