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

8 lines
121 B
Rust

enum SomeEnum {
E
}
fn main() {
E { name: "foobar" }; //~ ERROR cannot find struct, variant or union type `E`
}