]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0007.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / error-codes / E0007.stderr
1 error[E0007]: cannot bind by-move with sub-bindings
2   --> $DIR/E0007.rs:4:9
3    |
4 LL |         op_string @ Some(s) => {},
5    |         ^^^^^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it
6
7 error[E0303]: pattern bindings are not allowed after an `@`
8   --> $DIR/E0007.rs:4:26
9    |
10 LL |         op_string @ Some(s) => {},
11    |                          ^ not allowed after `@`
12
13 error: aborting due to 2 previous errors
14
15 Some errors occurred: E0007, E0303.
16 For more information about an error, try `rustc --explain E0007`.