summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0007.stderr
blob: f662365b8f18582f98b567c8a761155dccad453b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0007]: cannot bind by-move with sub-bindings
  --> $DIR/E0007.rs:14:9
   |
LL |         op_string @ Some(s) => {},
   |         ^^^^^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it

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

error: aborting due to 2 previous errors

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