From 1b6afd1e42ba2a809c2b7255ed61784d9901555e Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Thu, 12 May 2016 16:39:09 -0700 Subject: Update errors to use new error format --- src/test/compile-fail/const-pattern-irrefutable.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/test/compile-fail/const-pattern-irrefutable.rs') 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 } -- cgit 1.4.1-3-g733a5