rust/tests/ui/issues/issue-16149.rs

12 lines
208 B
Rust

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