rust/tests/ui/pub/pub-ident-fn-3.stderr
Xiretza 0757d5f83f Fix condition for "missing struct" diagnostic on tuple structs
The check previously matched this, and suggested adding a missing
`struct`:

pub Foo(...):

It was probably intended to match this instead (semicolon instead of
colon):

pub Foo(...);
2023-02-01 21:50:34 +01:00

14 lines
273 B
Plaintext

error: missing `struct` for struct definition
--> $DIR/pub-ident-fn-3.rs:4:8
|
LL | pub bar();
| ^
|
help: add `struct` here to parse `bar` as a public struct
|
LL | pub struct bar();
| ++++++
error: aborting due to previous error