rust/tests/ui/issues/issue-16149.rs
2023-01-11 09:32:08 +00:00

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,
};
}