| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:11:18 |
| | |
| LL | if let (0, .., _) = t {}; |
| | ^^^ help: remove it |
| | |
| = note: `-D clippy::unneeded-wildcard-pattern` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::unneeded_wildcard_pattern)]` |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:13:16 |
| | |
| LL | if let (0, _, ..) = t {}; |
| | ^^^ help: remove it |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:15:13 |
| | |
| LL | if let (_, .., 0) = t {}; |
| | ^^^ help: remove it |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:17:15 |
| | |
| LL | if let (.., _, 0) = t {}; |
| | ^^^ help: remove it |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:19:16 |
| | |
| LL | if let (0, _, _, ..) = t {}; |
| | ^^^^^^ help: remove them |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:21:18 |
| | |
| LL | if let (0, .., _, _) = t {}; |
| | ^^^^^^ help: remove them |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:31:22 |
| | |
| LL | if let (0, .., _, _,) = t {}; |
| | ^^^^^^ help: remove them |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:39:19 |
| | |
| LL | if let S(0, .., _) = s {}; |
| | ^^^ help: remove it |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:41:17 |
| | |
| LL | if let S(0, _, ..) = s {}; |
| | ^^^ help: remove it |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:43:14 |
| | |
| LL | if let S(_, .., 0) = s {}; |
| | ^^^ help: remove it |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:45:16 |
| | |
| LL | if let S(.., _, 0) = s {}; |
| | ^^^ help: remove it |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:47:17 |
| | |
| LL | if let S(0, _, _, ..) = s {}; |
| | ^^^^^^ help: remove them |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:49:19 |
| | |
| LL | if let S(0, .., _, _) = s {}; |
| | ^^^^^^ help: remove them |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:59:23 |
| | |
| LL | if let S(0, .., _, _,) = s {}; |
| | ^^^^^^ help: remove them |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:82:33 |
| | |
| LL | let Struct4 { mut a, mut b, c: _, .. } = fourval; |
| | ^^^^^^ help: remove it |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:84:26 |
| | |
| LL | let Struct4 { mut b, c: _, d: _, .. } = fourval; |
| | ^^^^^^^^^^^^ help: remove them |
| |
| error: these patterns are unneeded as the `..` pattern can match those elements |
| --> tests/ui/unneeded_wildcard_pattern.rs:88:19 |
| | |
| LL | let Struct4 { b: _, c: _, .. } = fourval; |
| | ^^^^^^^^^^^^ help: remove them |
| |
| error: this pattern is unneeded as the `..` pattern can match that element |
| --> tests/ui/unneeded_wildcard_pattern.rs:90:19 |
| | |
| LL | let Struct4 { c: _, .. } = fourval; |
| | ^^^^^^ help: remove it |
| |
| error: aborting due to 18 previous errors |
| |