rust/tests/ui/pub/pub-ident-struct-4.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
303 B
Plaintext
Raw Normal View History

error: missing `struct` for struct definition
2024-07-30 11:23:41 -05:00
--> $DIR/pub-ident-struct-4.rs:3:1
|
LL | pub T(#[allow(dead_code)] String);
2024-07-30 11:23:41 -05:00
| ^^^^^
|
help: add `struct` here to parse `T` as a struct
|
LL | pub struct T(#[allow(dead_code)] String);
| ++++++
error: aborting due to 1 previous error