2018-10-02 05:51:02 +00:00
|
|
|
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-53840.rs:13:16
|
2018-10-02 05:51:02 +00:00
|
|
|
|
|
|
|
|
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
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-53840.rs:17:14
|
2018-10-02 05:51:02 +00:00
|
|
|
|
|
|
|
|
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`.
|