rust/src/test/compile-fail/alt-range-fail.rs
2012-08-06 15:36:30 -07:00

20 lines
289 B
Rust

//error-pattern: lower range bound
//error-pattern: non-numeric
//error-pattern: mismatched types
fn main() {
match 5u {
6u to 1u => { }
_ => { }
};
match "wow" {
"bar" to "foo" => { }
};
match 5u {
'c' to 100u => { }
_ => { }
};
}