Update compiler error 0029 to use new error format.
This commit is contained in:
parent
b30eff7ba7
commit
1d25e2eecc
2 changed files with 11 additions and 8 deletions
|
|
@ -12,7 +12,11 @@ fn main() {
|
|||
let s = "hoho";
|
||||
|
||||
match s {
|
||||
"hello" ... "world" => {} //~ ERROR E0029
|
||||
"hello" ... "world" => {}
|
||||
//~^ ERROR only char and numeric types are allowed in range patterns
|
||||
//~| NOTE ranges require char or numeric types
|
||||
//~| NOTE start type: &'static str
|
||||
//~| NOTE end type: &'static str
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue