Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
enum
/
enum-variant-no-field.rs
blob: a69766b7c48d05a7b1851d6353393bf7000a13dc [
file
] [
log
] [
blame
] [
edit
]
//! 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`
}