1a4d82fc JJ |
1 | extern { |
2 | static externalValue: isize; |
223e47cc LB |
3 | } |
4 | |
5 | fn 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 | } |