mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
29 lines
896 B
Plaintext
29 lines
896 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:6:26
|
|
|
|
|
LL | struct MyEmptyTupleStruct(); // should trigger lint
|
|
| ^^^
|
|
|
|
|
= help: remove the brackets
|
|
|
|
error: found empty brackets on struct declaration
|
|
--> tests/ui/empty_structs_with_brackets.rs:40:31
|
|
|
|
|
LL | struct Foo<const N: usize> {}
|
|
| ^^^
|
|
|
|
|
= help: remove the brackets
|
|
|
|
error: aborting due to 3 previous errors
|
|
|