blob: c0cdbe342a07d503dfa5f62e19ab321e36997925 [file] [log] [blame]
fn main() {
match "wow" {
"bar" ..= "foo" => { }
};
//~^^ ERROR only char and numeric types are allowed in range
match "wow" {
10 ..= "what" => ()
};
//~^^ ERROR only char and numeric types are allowed in range
match "wow" {
true ..= "what" => {}
};
//~^^ ERROR only char and numeric types are allowed in range
match 5 {
'c' ..= 100 => { }
_ => { }
};
//~^^^ ERROR mismatched types
}