diff options
| author | Fabian Frei <fabian.frei@esf-frei.ch> | 2016-09-06 23:00:35 +0200 |
|---|---|---|
| committer | Fabian Frei <fabian.frei@esf-frei.ch> | 2016-10-13 00:16:52 +0200 |
| commit | 595b754a4b274dbc19fff740011e4b68df6dccf0 (patch) | |
| tree | dd98324322516ae8e59ecd457469925f7ff819d4 /src/test | |
| parent | 147371f58f1a99e32524d61af1d86b2e1e0a503b (diff) | |
| download | rust-595b754a4b274dbc19fff740011e4b68df6dccf0.tar.gz rust-595b754a4b274dbc19fff740011e4b68df6dccf0.zip | |
Changed error message E0408 to new format
r? @jonathandturner
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/E0408.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/issue-2848.rs | 4 | ||||
| -rw-r--r-- | src/test/compile-fail/resolve-inconsistent-names.rs | 6 |
3 files changed, 8 insertions, 6 deletions
diff --git a/src/test/compile-fail/E0408.rs b/src/test/compile-fail/E0408.rs index 43f6d9d757d..d75f6124827 100644 --- a/src/test/compile-fail/E0408.rs +++ b/src/test/compile-fail/E0408.rs @@ -12,7 +12,7 @@ fn main() { let x = Some(0); match x { - Some(y) | None => {} //~ ERROR E0408 - _ => () + Some(y) | None => {} //~ ERROR variable `y` from pattern #1 is not bound in pattern #2 + _ => () //~| NOTE pattern doesn't bind `y` } } diff --git a/src/test/compile-fail/issue-2848.rs b/src/test/compile-fail/issue-2848.rs index e5503edfab5..f5e0c545bb5 100644 --- a/src/test/compile-fail/issue-2848.rs +++ b/src/test/compile-fail/issue-2848.rs @@ -19,7 +19,7 @@ mod bar { fn main() { use bar::foo::{alpha, charlie}; match alpha { - alpha | beta => {} //~ ERROR variable `beta` from pattern #2 is not bound in pattern #1 - charlie => {} + alpha | beta => {} //~ ERROR variable `beta` from pattern #2 is not bound in pattern #1 + charlie => {} //~| NOTE pattern doesn't bind `beta` } } diff --git a/src/test/compile-fail/resolve-inconsistent-names.rs b/src/test/compile-fail/resolve-inconsistent-names.rs index f7f3acd37d6..1e2541502ac 100644 --- a/src/test/compile-fail/resolve-inconsistent-names.rs +++ b/src/test/compile-fail/resolve-inconsistent-names.rs @@ -11,7 +11,9 @@ fn main() { let y = 1; match y { - a | b => {} //~ ERROR variable `a` from pattern #1 is not bound in pattern #2 - //~^ ERROR variable `b` from pattern #2 is not bound in pattern #1 + a | b => {} //~ ERROR variable `a` from pattern #1 is not bound in pattern #2 + //~^ ERROR variable `b` from pattern #2 is not bound in pattern #1 + //~| NOTE pattern doesn't bind `a` + //~| NOTE pattern doesn't bind `b` } } |
