]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-53840.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-53840.stderr
1 error[E0009]: cannot bind by-move and by-ref in the same pattern
2   --> $DIR/issue-53840.rs:13:16
3    |
4 LL |         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
10 error[E0009]: cannot bind by-move and by-ref in the same pattern
11   --> $DIR/issue-53840.rs:17:14
12    |
13 LL |         Bar {a, ref b} => {}
14    |              ^  ----- both by-ref and by-move used
15    |              |
16    |              by-move pattern here
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0009`.