| 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: enum variant has empty brackets | |
| --> tests/ui/empty_enum_variants_with_brackets.rs:107: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:119: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:127: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 | |