]>
Commit | Line | Data |
---|---|---|
29967ef6 | 1 | error[E0382]: use of partially moved value |
94222f64 | 2 | --> $DIR/copy-and-move-mixed.rs:12:9 |
dfeec247 XL |
3 | | |
4 | LL | 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 |
10 | help: borrow this binding in the pattern to avoid moving the value |
11 | | | |
12 | LL | let ref a @ NC(b, ref c @ NC(d, e)) = NC(C, NC(C, C)); | |
13 | | +++ +++ | |
dfeec247 | 14 | |
29967ef6 | 15 | error: aborting due to previous error |
dfeec247 | 16 | |
74b04a01 | 17 | For more information about this error, try `rustc --explain E0382`. |