mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 17:15:05 +00:00
20 lines
577 B
Text
20 lines
577 B
Text
|
error: found empty brackets on struct declaration
|
||
|
--> $DIR/empty_structs_with_brackets.rs:5:25
|
||
|
|
|
||
|
LL | pub struct MyEmptyStruct {} // should trigger lint
|
||
|
| ^^^
|
||
|
|
|
||
|
= note: `-D clippy::empty-structs-with-brackets` implied by `-D warnings`
|
||
|
= help: remove the brackets
|
||
|
|
||
|
error: found empty brackets on struct declaration
|
||
|
--> $DIR/empty_structs_with_brackets.rs:6:26
|
||
|
|
|
||
|
LL | struct MyEmptyTupleStruct(); // should trigger lint
|
||
|
| ^^^
|
||
|
|
|
||
|
= help: remove the brackets
|
||
|
|
||
|
error: aborting due to 2 previous errors
|
||
|
|