rust/src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.stderr

13 lines
447 B
Plaintext
Raw Normal View History

error[E0009]: cannot bind by-move and by-ref in the same pattern
--> $DIR/borrowck-pat-by-move-and-ref.rs:5:34
|
LL | ref op_string_ref @ Some(s) => {},
| -------------------------^-
| | |
| | by-move pattern here
| by-ref pattern here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0009`.