summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0007.stderr
blob: 1370cacd7cbfaec674623525e98d432ff18d5c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0007]: cannot bind by-move with sub-bindings
  --> $DIR/E0007.rs:14:9
   |
14 |         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
   |
14 |         op_string @ Some(s) => {},
   |                          ^ not allowed after `@`

error: aborting due to 2 previous errors