rust/tests/ui/empty_structs_with_brackets.stderr
2024-02-17 12:34:54 +00:00

21 lines
674 B
Plaintext

error: found empty brackets on struct declaration
--> tests/ui/empty_structs_with_brackets.rs:4:25
|
LL | pub struct MyEmptyStruct {} // should trigger lint
| ^^^
|
= note: `-D clippy::empty-structs-with-brackets` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::empty_structs_with_brackets)]`
= help: remove the brackets
error: found empty brackets on struct declaration
--> tests/ui/empty_structs_with_brackets.rs:5:26
|
LL | struct MyEmptyTupleStruct(); // should trigger lint
| ^^^
|
= help: remove the brackets
error: aborting due to 2 previous errors