rust/src/test/ui/error-codes/E0008.rs
2018-12-25 21:08:33 -07:00

7 lines
136 B
Rust

fn main() {
match Some("hi".to_string()) {
Some(s) if s.len() == 0 => {},
//~^ ERROR E0008
_ => {},
}
}