rust/tests/ui/rfcs/rfc-0107-bind-by-move-pattern-guards/former-E0008-now-pass.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
235 B
Rust
Raw Normal View History

// This test used to emit E0008 but now passed since `bind_by_move_pattern_guards`
// have been stabilized.
// check-pass
fn main() {
match Some("hi".to_string()) {
Some(s) if s.len() == 0 => {},
_ => {},
}
}