diff options
| author | Jonathan Turner <jturner@mozilla.com> | 2016-05-12 16:39:09 -0700 |
|---|---|---|
| committer | Jonathan Turner <jturner@mozilla.com> | 2016-05-12 16:48:59 -0700 |
| commit | 1b6afd1e42ba2a809c2b7255ed61784d9901555e (patch) | |
| tree | aa613d7f87ce2342eae9188f13d9222c28c1c6cf /src/test/compile-fail/const-pattern-irrefutable.rs | |
| parent | 104fe1c4db24f860b890dfd25577f23ee111279a (diff) | |
| download | rust-1b6afd1e42ba2a809c2b7255ed61784d9901555e.tar.gz rust-1b6afd1e42ba2a809c2b7255ed61784d9901555e.zip | |
Update errors to use new error format
Diffstat (limited to 'src/test/compile-fail/const-pattern-irrefutable.rs')
| -rw-r--r-- | src/test/compile-fail/const-pattern-irrefutable.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/test/compile-fail/const-pattern-irrefutable.rs b/src/test/compile-fail/const-pattern-irrefutable.rs index 0be1e974e7d..392f391fb51 100644 --- a/src/test/compile-fail/const-pattern-irrefutable.rs +++ b/src/test/compile-fail/const-pattern-irrefutable.rs @@ -13,16 +13,16 @@ mod foo { pub const d: u8 = 2; } -use foo::b as c; //~ NOTE constant imported here -use foo::d; //~ NOTE constant imported here +use foo::b as c; //~ NOTE is imported here +use foo::d; //~ NOTE is imported here -const a: u8 = 2; //~ NOTE constant defined here +const a: u8 = 2; //~ NOTE is defined here fn main() { - let a = 4; //~ ERROR variable bindings cannot - //~^ NOTE there already is a constant in scope - let c = 4; //~ ERROR variable bindings cannot - //~^ NOTE there already is a constant in scope - let d = 4; //~ ERROR variable bindings cannot - //~^ NOTE there already is a constant in scope + let a = 4; //~ ERROR let variables cannot + //~^ NOTE cannot be named the same as a const variable + let c = 4; //~ ERROR let variables cannot + //~^ NOTE cannot be named the same as a const variable + let d = 4; //~ ERROR let variables cannot + //~^ NOTE cannot be named the same as a const variable } |
