diff options
Diffstat (limited to 'src/test/compile-fail/issue-27033.rs')
| -rw-r--r-- | src/test/compile-fail/issue-27033.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/issue-27033.rs b/src/test/compile-fail/issue-27033.rs index b0904dfeaa7..2a015adb498 100644 --- a/src/test/compile-fail/issue-27033.rs +++ b/src/test/compile-fail/issue-27033.rs @@ -10,11 +10,11 @@ fn main() { match Some(1) { - None @ _ => {} //~ ERROR cannot be named the same + None @ _ => {} //~ ERROR match bindings cannot shadow variants }; const C: u8 = 1; match 1 { - C @ 2 => { //~ ERROR cannot be named the same + C @ 2 => { //~ ERROR match bindings cannot shadow constant println!("{}", C); } _ => {} |
