]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0303.stderr
Move some E0XXX to `ui`
[rust.git] / src / test / ui / error-codes / E0303.stderr
1 error[E0009]: cannot bind by-move and by-ref in the same pattern
2   --> $DIR/E0303.rs:13:34
3    |
4 13 |         ref op_string_ref @ Some(s) => {},
5    |         -------------------------^-
6    |         |                        |
7    |         |                        by-move pattern here
8    |         both by-ref and by-move used
9
10 error[E0303]: pattern bindings are not allowed after an `@`
11   --> $DIR/E0303.rs:13:34
12    |
13 13 |         ref op_string_ref @ Some(s) => {},
14    |                                  ^ not allowed after `@`
15
16 error: aborting due to 2 previous errors
17