mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
1bd997a452
Split invalid-compile-flags into run-pass & invalid Update tests/ui/README.md
11 lines
265 B
Rust
11 lines
265 B
Rust
//! 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`
|
|
_ => {}
|
|
}
|
|
}
|