blob: 44a723f5cb36a57d02790c7f9beb46db6028cfc9 [file]
error[E0532]: cannot find tuple struct or tuple variant `FooB` in this scope
--> $DIR/struct-variant-as-tuple-variant.rs:12:9
|
LL | enum Foo {
LL | FooB { x: i32, y: i32 }
| ----------------------- `FooB` defined here
...
LL | FooB(a, b) => println!("{} {}", a, b),
| ^^^^^^^^^^
|
= note: a variant named `FooB` exists in another namespace
help: use struct pattern syntax instead
|
LL - FooB(a, b) => println!("{} {}", a, b),
LL + FooB { x: a, y: b } => println!("{} {}", a, b),
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0532`.