mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
1bd997a452
Split invalid-compile-flags into run-pass & invalid Update tests/ui/README.md
10 lines
166 B
Rust
10 lines
166 B
Rust
//! regression test for https://github.com/rust-lang/rust/issues/23253
|
|
enum Foo {
|
|
Bar,
|
|
}
|
|
|
|
fn main() {
|
|
Foo::Bar.a;
|
|
//~^ ERROR no field `a` on type `Foo`
|
|
}
|