mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
10 lines
198 B
Rust
10 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`
|
|
_ => { },
|
|
}
|
|
}
|