diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-34047.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-34047.rs b/src/test/ui/issues/issue-34047.rs new file mode 100644 index 000000000..55196177f --- /dev/null +++ b/src/test/ui/issues/issue-34047.rs @@ -0,0 +1,8 @@ +const C: u8 = 0; + +fn main() { + match 1u8 { + mut C => {} //~ ERROR match bindings cannot shadow constants + _ => {} + } +} |