rust/src/test/ui/issues/issue-16149.rs
2018-12-25 21:08:33 -07:00

12 lines
203 B
Rust

extern {
static externalValue: isize;
}
fn main() {
let boolValue = match 42 {
externalValue => true,
//~^ ERROR match bindings cannot shadow statics
_ => false
};
}