mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-13 15:33:53 +00:00
![Xiretza](/assets/img/avatar_default.png)
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(...);
7 lines
95 B
Rust
7 lines
95 B
Rust
// run-rustfix
|
|
|
|
pub T(String);
|
|
//~^ ERROR missing `struct` for struct definition
|
|
|
|
fn main() {}
|