rust/tests/ui/pub/pub-ident-struct-4.rs
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
95 B
Rust

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