Closed
Description
enum Foo {
Bar { x: () }
}
fn main() {
let f = Foo::Bar { y: () };
}
Produces:
<anon>:6:24: 6:25 error: structure `Foo` has no field named `y`
<anon>:6 let f = Foo::Bar { y: () };
^
error: aborting due to previous error
playpen: application terminated with error code 101
It would be more helpful to say that the struct variant Foo::Bar
has no field named y
.
Metadata
Metadata
Assignees
Labels
No labels