diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-16149.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-16149.rs b/src/test/ui/issues/issue-16149.rs new file mode 100644 index 000000000..51b60725c --- /dev/null +++ b/src/test/ui/issues/issue-16149.rs @@ -0,0 +1,11 @@ +extern "C" { + static externalValue: isize; +} + +fn main() { + let boolValue = match 42 { + externalValue => true, + //~^ ERROR match bindings cannot shadow statics + _ => false, + }; +} |