| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:7:16 |
| | |
| LL | EmptyBraces {}, |
| | ^^^ |
| | |
| = note: `-D clippy::empty-enum-variants-with-brackets` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::empty_enum_variants_with_brackets)]` |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:15:16 |
| | |
| LL | EmptyBraces {}, |
| | ^^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:17:21 |
| | |
| LL | EmptyParentheses(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:28:16 |
| | |
| LL | Unknown(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:47:16 |
| | |
| LL | Unknown(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:53:20 |
| | |
| LL | Parentheses(), |
| | ^^ |
| | |
| help: remove the brackets |
| | |
| LL ~ Parentheses, |
| LL | |
| ... |
| LL | // The parentheses in the below line are redundant. |
| LL ~ RedundantParenthesesFunctionCall::Parentheses; |
| | |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:76:20 |
| | |
| LL | Parentheses(), |
| | ^^ |
| | |
| help: remove the brackets |
| | |
| LL ~ RedundantParenthesesFunctionCall2::Parentheses; |
| LL | RedundantParenthesesFunctionCall2::NoParentheses; |
| ... |
| LL | // Used as a function call but with redundant parentheses |
| LL ~ Parentheses, |
| | |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:95:13 |
| | |
| LL | Variant3(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: aborting due to 8 previous errors |
| |