rust/src/test/ui/bind-by-move/bind-by-move-no-guards.stderr

10 lines
321 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0008]: cannot bind by-move into a pattern guard
--> $DIR/bind-by-move-no-guards.rs:18:14
|
LL | Some(z) if z.recv().unwrap() => { panic!() },
| ^ moves value into pattern guard
error: aborting due to previous error
For more information about this error, try `rustc --explain E0008`.