summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0303.stderr
blob: b9da037df0e67e72daaf2038c966b6e84868fb14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0009]: cannot bind by-move and by-ref in the same pattern
  --> $DIR/E0303.rs:13:34
   |
LL |         ref op_string_ref @ Some(s) => {},
   |         -------------------------^-
   |         |                        |
   |         |                        by-move pattern here
   |         both by-ref and by-move used

error[E0303]: pattern bindings are not allowed after an `@`
  --> $DIR/E0303.rs:13:34
   |
LL |         ref op_string_ref @ Some(s) => {},
   |                                  ^ not allowed after `@`

error: aborting due to 2 previous errors

Some errors occurred: E0009, E0303.
For more information about an error, try `rustc --explain E0009`.