Update E0297 to new error format
This commit is contained in:
parent
a5f4cc527d
commit
f647db4c8a
2 changed files with 8 additions and 3 deletions
|
|
@ -11,5 +11,7 @@
|
|||
fn main() {
|
||||
let xs : Vec<Option<i32>> = vec!(Some(1), None);
|
||||
|
||||
for Some(x) in xs {} //~ ERROR E0297
|
||||
for Some(x) in xs {}
|
||||
//~^ ERROR E0297
|
||||
//~| NOTE pattern `None` not covered
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue