]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error[E0509]: cannot move out of type `S`, which implements the `Drop` trait |
2 | --> $DIR/borrowck-struct-update-with-dtor.rs:25:15 | |
3 | | | |
4 | LL | let _s2 = S{a: 2, ..s0}; | |
5 | | ^^^^^^^^^^^^^ cannot move out of here | |
6 | ||
7 | error[E0509]: cannot move out of type `T`, which implements the `Drop` trait | |
8 | --> $DIR/borrowck-struct-update-with-dtor.rs:31:15 | |
9 | | | |
10 | LL | let _s2 = T{a: 2, ..s0}; | |
11 | | ^^^^^^^^^^^^^ cannot move out of here | |
12 | ||
13 | error: aborting due to 2 previous errors | |
14 | ||
15 | For more information about this error, try `rustc --explain E0509`. |