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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
208 B
Rust
Raw Normal View History

2020-09-01 21:12:52 +00:00
extern "C" {
static externalValue: isize;
}
fn main() {
let boolValue = match 42 {
externalValue => true,
2016-06-03 20:15:00 +00:00
//~^ ERROR match bindings cannot shadow statics
2020-09-01 21:12:52 +00:00
_ => false,
};
}