rust/tests/ui/resolve/issue-17518.rs

8 lines
121 B
Rust
Raw Normal View History

enum SomeEnum {
E
}
fn main() {
2017-11-20 06:13:27 -06:00
E { name: "foobar" }; //~ ERROR cannot find struct, variant or union type `E`
}