rust/tests/ui/empty_structs_with_brackets.stderr

20 lines
577 B
Plaintext
Raw Normal View History

2022-03-27 07:16:08 -05:00
error: found empty brackets on struct declaration
--> $DIR/empty_structs_with_brackets.rs:5:25
2022-03-27 07:16:08 -05:00
|
2022-03-27 08:26:36 -05:00
LL | pub struct MyEmptyStruct {} // should trigger lint
2022-03-27 13:10:10 -05:00
| ^^^
2022-03-27 07:16:08 -05:00
|
= note: `-D clippy::empty-structs-with-brackets` implied by `-D warnings`
2022-03-27 13:10:10 -05:00
= help: remove the brackets
2022-03-27 07:16:08 -05:00
error: found empty brackets on struct declaration
--> $DIR/empty_structs_with_brackets.rs:6:26
2022-03-27 07:16:08 -05:00
|
2022-03-27 08:26:36 -05:00
LL | struct MyEmptyTupleStruct(); // should trigger lint
2022-03-27 13:10:10 -05:00
| ^^^
|
= help: remove the brackets
2022-03-27 07:16:08 -05:00
error: aborting due to 2 previous errors