| error[E0532]: cannot find tuple struct or tuple variant `FooB` in this scope | |
| --> $DIR/issue-106862.rs:16:9 | |
| | | |
| LL | enum Foo { | |
| LL | FooA { opt_x: Option<i32>, y: i32 }, | |
| 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[E0532]: cannot find tuple struct or tuple variant `FooB` in this scope | |
| --> $DIR/issue-106862.rs:22:9 | |
| | | |
| LL | enum Foo { | |
| LL | FooA { opt_x: Option<i32>, y: i32 }, | |
| LL | FooB { x: i32, y: i32 } | |
| | ----------------------- `FooB` defined here | |
| ... | |
| LL | FooB(x, y) => println!("{} {}", x, y), | |
| | ^^^^^^^^^^ | |
| | | |
| = note: a variant named `FooB` exists in another namespace | |
| help: use struct pattern syntax instead | |
| | | |
| LL - FooB(x, y) => println!("{} {}", x, y), | |
| LL + FooB { x, y } => println!("{} {}", x, y), | |
| | | |
| error[E0532]: cannot find tuple struct or tuple variant `FooA` in this scope | |
| --> $DIR/issue-106862.rs:28:9 | |
| | | |
| LL | enum Foo { | |
| LL | FooA { opt_x: Option<i32>, y: i32 }, | |
| | ----------------------------------- `FooA` defined here | |
| ... | |
| LL | FooA(Some(x), y) => println!("{} {}", x, y), | |
| | ^^^^^^^^^^^^^^^^ | |
| | | |
| = note: a variant named `FooA` exists in another namespace | |
| help: use struct pattern syntax instead | |
| | | |
| LL - FooA(Some(x), y) => println!("{} {}", x, y), | |
| LL + FooA { opt_x: Some(x), y } => println!("{} {}", x, y), | |
| | | |
| error[E0532]: cannot find tuple struct or tuple variant `FooB` in this scope | |
| --> $DIR/issue-106862.rs:34:9 | |
| | | |
| LL | enum Foo { | |
| LL | FooA { opt_x: Option<i32>, y: i32 }, | |
| LL | FooB { x: i32, y: i32 } | |
| | ----------------------- `FooB` defined here | |
| ... | |
| LL | FooB(a, _, _) => println!("{}", a), | |
| | ^^^^^^^^^^^^^ | |
| | | |
| = note: a variant named `FooB` exists in another namespace | |
| help: use struct pattern syntax instead | |
| | | |
| LL - FooB(a, _, _) => println!("{}", a), | |
| LL + FooB { x: a, y: _ } => println!("{}", a), | |
| | | |
| error[E0532]: cannot find tuple struct or tuple variant `FooB` in this scope | |
| --> $DIR/issue-106862.rs:40:9 | |
| | | |
| LL | enum Foo { | |
| LL | FooA { opt_x: Option<i32>, y: i32 }, | |
| LL | FooB { x: i32, y: i32 } | |
| | ----------------------- `FooB` defined here | |
| ... | |
| LL | FooB() => (), | |
| | ^^^^^^ | |
| | | |
| = note: a variant named `FooB` exists in another namespace | |
| help: use struct pattern syntax instead | |
| | | |
| LL - FooB() => (), | |
| LL + FooB { x, y } => (), | |
| | | |
| error: aborting due to 5 previous errors | |
| For more information about this error, try `rustc --explain E0532`. |