mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
0757d5f83f
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(...);
14 lines
267 B
Plaintext
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
|
|
|