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
273 B
Plaintext
14 lines
273 B
Plaintext
error: missing `struct` for struct definition
|
|
--> $DIR/pub-ident-fn-3.rs:4:8
|
|
|
|
|
LL | pub bar();
|
|
| ^
|
|
|
|
|
help: add `struct` here to parse `bar` as a public struct
|
|
|
|
|
LL | pub struct bar();
|
|
| ++++++
|
|
|
|
error: aborting due to previous error
|
|
|