| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:8: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:16:16 |
| | |
| LL | EmptyBraces {}, |
| | ^^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:18:21 |
| | |
| LL | EmptyParentheses(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:29:16 |
| | |
| LL | Unknown(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:48:16 |
| | |
| LL | Unknown(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:54: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:77: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:96:13 |
| | |
| LL | Variant3(), |
| | ^^ |
| | |
| = help: remove the brackets |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:108:10 |
| | |
| LL | V(), |
| | ^^ |
| | |
| help: remove the brackets |
| | |
| LL ~ V, |
| LL | |
| LL | } |
| LL | |
| LL ~ let E::V = E::V; |
| LL | |
| LL ~ <E>::V = E::V; |
| LL ~ <E>::V = E::V; |
| | |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:120:10 |
| | |
| LL | V(), |
| | ^^ |
| | |
| help: remove the brackets |
| | |
| LL ~ V, |
| LL | |
| LL | } |
| LL ~ E::V = E::V; |
| LL ~ E::V = E::V; |
| LL ~ <E>::V = <E>::V; |
| | |
| |
| error: enum variant has empty brackets |
| --> tests/ui/empty_enum_variants_with_brackets.rs:128:10 |
| | |
| LL | U {}, |
| | ^^^ |
| | |
| help: remove the brackets |
| | |
| LL ~ U, |
| LL | |
| LL | } |
| LL ~ F::U = F::U; |
| LL ~ <F>::U = F::U; |
| | |
| |
| error: aborting due to 11 previous errors |
| |