rust/tests/ui/issues/issue-19086.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
448 B
Plaintext
Raw Normal View History

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
|
LL | FooB { x: i32, y: i32 }
| ----------------------- `FooB` defined here
...
2018-07-15 16:11:54 -05:00
LL | FooB(a, b) => println!("{} {}", a, b),
| ^^^^^^^^^^ 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`.