rust/tests/ui/pub/pub-ident-struct-4.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
267 B
Plaintext

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