]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16149.rs
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-16149.rs
1 extern "C" {
2     static externalValue: isize;
3 }
4
5 fn main() {
6     let boolValue = match 42 {
7         externalValue => true,
8         //~^ ERROR match bindings cannot shadow statics
9         _ => false,
10     };
11 }