]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-16149.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-16149.rs
CommitLineData
1a4d82fc
JJ
1extern {
2 static externalValue: isize;
223e47cc
LB
3}
4
5fn main() {
1a4d82fc
JJ
6 let boolValue = match 42 {
7 externalValue => true,
3157f602 8 //~^ ERROR match bindings cannot shadow statics
1a4d82fc 9 _ => false
223e47cc 10 };
223e47cc 11}