Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
match
/
match-static-pattern.rs
blob: 5d367f9ec17c70266e81538e7924be7cdeb581ae [
file
] [
log
] [
blame
]
//! regression test for issue https://github.com/rust-lang/rust/issues/17933
pub
static
X
:
usize
=
1
;
fn
main
()
{
match
1
{
self
::
X
=>
{}
//~^ ERROR expected unit struct, unit variant or constant, found static `self::X`
_
=>
{}
}
}