rust/src/test/ui/bind-by-move/bind-by-move-no-guards.stderr
Felix S. Klock II c50884c615 Tests for feature(bind_by_move_pattern_guards).
Apparently copyright notices are no longer necessary apparently.
(See #43498 and #53654.)
2018-09-17 13:46:50 +02:00

10 lines
320 B
Plaintext

error[E0008]: cannot bind by-move into a pattern guard
--> $DIR/bind-by-move-no-guards.rs:8: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`.