blob: 4b8572d5c9ef6820a2529fb69d1c10dd1217c071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
error: found empty brackets on struct declaration
--> $DIR/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
--> $DIR/empty_structs_with_brackets.rs:5:26
|
LL | struct MyEmptyTupleStruct(); // should trigger lint
| ^^^
|
= help: remove the brackets
error: aborting due to 2 previous errors
|