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