mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
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`
|
|
}
|