fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0009]: cannot bind by-move and by-ref in the same pattern 2 --> $DIR/issue-53840.rs:13:16 3 | 4LL | E::Foo(a, b, ref c) => {} 5 | ^ ^ ----- both by-ref and by-move used 6 | | | 7 | | by-move pattern here 8 | by-move pattern here 9 10error[E0009]: cannot bind by-move and by-ref in the same pattern 11 --> $DIR/issue-53840.rs:17:14 12 | 13LL | Bar {a, ref b} => {} 14 | ^ ----- both by-ref and by-move used 15 | | 16 | by-move pattern here 17 18error: aborting due to 2 previous errors 19 20For more information about this error, try `rustc --explain E0009`.