summary refs log tree commit diff
path: root/src/test/ui/codemap_tests/overlapping_spans.nll.stderr
blob: e334472f9d6e1b26cba8b06eb20fe2ccdd999cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0509]: cannot move out of type `S`, which implements the `Drop` trait
  --> $DIR/overlapping_spans.rs:20:11
   |
LL |     match (S {f:"foo".to_string()}) {
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot move out of here
LL |         S {f:_s} => {} //~ ERROR cannot move out
   |              -- data moved here
   |
note: move occurs because `_s` has type `std::string::String`, which does not implement the `Copy` trait
  --> $DIR/overlapping_spans.rs:21:14
   |
LL |         S {f:_s} => {} //~ ERROR cannot move out
   |              ^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0509`.