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