]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.stderr
check_legality_of_move_bindings: generalize diagnostics & add comments
[rust.git] / src / test / ui / pattern / bindings-after-at / borrowck-pat-by-move-and-ref.stderr
1 warning: the feature `bindings_after_at` is incomplete and may cause the compiler to crash
2   --> $DIR/borrowck-pat-by-move-and-ref.rs:1:12
3    |
4 LL | #![feature(bindings_after_at)]
5    |            ^^^^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8
9 error[E0009]: cannot bind by-move and by-ref in the same pattern
10   --> $DIR/borrowck-pat-by-move-and-ref.rs:6:34
11    |
12 LL |         ref op_string_ref @ Some(s) => {},
13    |         -------------------------^-
14    |         |                        |
15    |         |                        by-move pattern here
16    |         by-ref pattern here
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0009`.