summary refs log tree commit diff
path: root/src/test/ui/codemap_tests/overlapping_spans.nll.stderr
blob: 34616a8de45ed9882743c67058448700e39b5133 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
   |              -- help: to prevent move, use ref or ref mut: `ref _s`

error: aborting due to previous error

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