blob: 961e4c0ff6286ab907d0b02d901b7e76105ff757 [file] [log] [blame]
error[E0009]: cannot bind by-move and by-ref in the same pattern
--> $DIR/issue-53840.rs:22:16
|
LL | E::Foo(a, b, ref c) => {}
| ^ ^ ----- both by-ref and by-move used
| | |
| | by-move pattern here
| by-move pattern here
error[E0009]: cannot bind by-move and by-ref in the same pattern
--> $DIR/issue-53840.rs:25:14
|
LL | Bar {a, ref b} => {}
| ^ ----- both by-ref and by-move used
| |
| by-move pattern here
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0009`.