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