diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-09-13 10:25:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-13 10:25:49 +0200 |
| commit | 2a88e6c42e81a7fc30e76b1508c3583bc05d2415 (patch) | |
| tree | 0e5b8b9fd72093c08f9a94b48bcd1bd910b148a4 /src/test/compile-fail | |
| parent | f658548c93287af09c77e606843d0e0bc4c79c1d (diff) | |
| parent | f647db4c8a8e6e49aac60e973044b6556af5a3ad (diff) | |
| download | rust-2a88e6c42e81a7fc30e76b1508c3583bc05d2415.tar.gz rust-2a88e6c42e81a7fc30e76b1508c3583bc05d2415.zip | |
Rollup merge of #36389 - jfirebaugh:E0297, r=GuillaumeGomez
Update E0297 to new error format Fixes #35521. Part of #35233. I didn't attempt the bonus of narrowing the span to focus on the "for `<pattern>`" piece (it's my first time contributing), but I'm happy to do so given some hints. r? @jonathandturner
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/E0297.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/compile-fail/E0297.rs b/src/test/compile-fail/E0297.rs index 43166c1a9e8..32c129b22a1 100644 --- a/src/test/compile-fail/E0297.rs +++ b/src/test/compile-fail/E0297.rs @@ -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 } |
