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

7 lines
102 B
Rust

// run-rustfix
pub struct T(String);
//~^ ERROR missing `struct` for struct definition
fn main() {}