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