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

9 lines
198 B
Rust

pub static X: usize = 1;
fn main() {
match 1 {
self::X => { },
//~^ ERROR expected unit struct, unit variant or constant, found static `self::X`
_ => { },
}
}