mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
12 lines
236 B
Rust
12 lines
236 B
Rust
// 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 => {},
|
|
_ => {},
|
|
}
|
|
}
|