fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
675 B20 linesraw
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`.