diff options
Diffstat (limited to 'src/test/compile-fail/const-pattern-irrefutable.rs')
| -rw-r--r-- | src/test/compile-fail/const-pattern-irrefutable.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/compile-fail/const-pattern-irrefutable.rs b/src/test/compile-fail/const-pattern-irrefutable.rs index 392f391fb51..75b6397f4eb 100644 --- a/src/test/compile-fail/const-pattern-irrefutable.rs +++ b/src/test/compile-fail/const-pattern-irrefutable.rs @@ -19,10 +19,10 @@ use foo::d; //~ NOTE is imported here const a: u8 = 2; //~ NOTE is defined here fn main() { - 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 + let a = 4; //~ ERROR let bindings cannot shadow constants + //~^ NOTE cannot be named the same as a constant + let c = 4; //~ ERROR let bindings cannot shadow constants + //~^ NOTE cannot be named the same as a constant + let d = 4; //~ ERROR let bindings cannot shadow constants + //~^ NOTE cannot be named the same as a constant } |
