Update compiler error 0029 to use new error format.

This commit is contained in:
silenuss 2016-08-06 00:33:59 -06:00
parent b30eff7ba7
commit 1d25e2eecc
2 changed files with 11 additions and 8 deletions

View file

@ -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
_ => {}
}
}