fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
689 B19 linesraw
1error[E0009]: cannot bind by-move and by-ref in the same pattern
2  --> $DIR/E0303.rs:3:34
3   |
4LL |         ref op_string_ref @ Some(s) => {},
5   |         -------------------------^-
6   |         |                        |
7   |         |                        by-move pattern here
8   |         both by-ref and by-move used
9
10error[E0303]: pattern bindings are not allowed after an `@`
11  --> $DIR/E0303.rs:3:34
12   |
13LL |         ref op_string_ref @ Some(s) => {},
14   |                                  ^ not allowed after `@`
15
16error: aborting due to 2 previous errors
17
18Some errors have detailed explanations: E0009, E0303.
19For more information about an error, try `rustc --explain E0009`.