2022-04-07 12:39:59 -05:00
|
|
|
error: found empty brackets on struct declaration
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/empty_structs_with_brackets.rs:4:25
|
2022-04-07 12:39:59 -05:00
|
|
|
|
|
|
|
|
LL | pub struct MyEmptyStruct {} // should trigger lint
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::empty-structs-with-brackets` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::empty_structs_with_brackets)]`
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: remove the brackets
|
|
|
|
|
|
|
|
error: found empty brackets on struct declaration
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/empty_structs_with_brackets.rs:5:26
|
2022-04-07 12:39:59 -05:00
|
|
|
|
|
|
|
|
LL | struct MyEmptyTupleStruct(); // should trigger lint
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: remove the brackets
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|