Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
pattern
/
static-binding-shadow-16149.rs
blob: a46f78214c70d06a0611761df42dbcbc76017f36 [
file
] [
log
] [
blame
]
//! Regression test for https://github.com/rust-lang/rust/issues/16149
extern
"C"
{
static
externalValue
:
isize
;
}
fn
main
()
{
let
boolValue
=
match
42
{
externalValue
=>
true
,
//~^ ERROR match bindings cannot shadow statics
_
=>
false
,
};
}