2022-10-25 11:15:15 -05:00
|
|
|
error[E0532]: expected tuple struct or tuple variant, found variant `FooB`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-19086.rs:10:9
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | FooB { x: i32, y: i32 }
|
|
|
|
| ----------------------- `FooB` defined here
|
|
|
|
...
|
2018-07-15 16:11:54 -05:00
|
|
|
LL | FooB(a, b) => println!("{} {}", a, b),
|
2023-03-10 02:29:45 -06:00
|
|
|
| ^^^^^^^^^^ help: use struct pattern syntax instead: `FooB { x: a, y: b }`
|
2018-07-15 16:11:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0532`.
|