1 error: this pattern is unneeded as the `..` pattern can match that element
2 --> $DIR/unneeded_wildcard_pattern.rs:8:18
4 LL | if let (0, .., _) = t {};
7 note: lint level defined here
8 --> $DIR/unneeded_wildcard_pattern.rs:3:9
10 LL | #![deny(clippy::unneeded_wildcard_pattern)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: this pattern is unneeded as the `..` pattern can match that element
14 --> $DIR/unneeded_wildcard_pattern.rs:9:16
16 LL | if let (0, _, ..) = t {};
19 error: this pattern is unneeded as the `..` pattern can match that element
20 --> $DIR/unneeded_wildcard_pattern.rs:10:13
22 LL | if let (_, .., 0) = t {};
25 error: this pattern is unneeded as the `..` pattern can match that element
26 --> $DIR/unneeded_wildcard_pattern.rs:11:15
28 LL | if let (.., _, 0) = t {};
31 error: these patterns are unneeded as the `..` pattern can match those elements
32 --> $DIR/unneeded_wildcard_pattern.rs:12:16
34 LL | if let (0, _, _, ..) = t {};
35 | ^^^^^^ help: remove them
37 error: these patterns are unneeded as the `..` pattern can match those elements
38 --> $DIR/unneeded_wildcard_pattern.rs:13:18
40 LL | if let (0, .., _, _) = t {};
41 | ^^^^^^ help: remove them
43 error: these patterns are unneeded as the `..` pattern can match those elements
44 --> $DIR/unneeded_wildcard_pattern.rs:22:22
46 LL | if let (0, .., _, _,) = t {};
47 | ^^^^^^ help: remove them
49 error: this pattern is unneeded as the `..` pattern can match that element
50 --> $DIR/unneeded_wildcard_pattern.rs:29:19
52 LL | if let S(0, .., _) = s {};
55 error: this pattern is unneeded as the `..` pattern can match that element
56 --> $DIR/unneeded_wildcard_pattern.rs:30:17
58 LL | if let S(0, _, ..) = s {};
61 error: this pattern is unneeded as the `..` pattern can match that element
62 --> $DIR/unneeded_wildcard_pattern.rs:31:14
64 LL | if let S(_, .., 0) = s {};
67 error: this pattern is unneeded as the `..` pattern can match that element
68 --> $DIR/unneeded_wildcard_pattern.rs:32:16
70 LL | if let S(.., _, 0) = s {};
73 error: these patterns are unneeded as the `..` pattern can match those elements
74 --> $DIR/unneeded_wildcard_pattern.rs:33:17
76 LL | if let S(0, _, _, ..) = s {};
77 | ^^^^^^ help: remove them
79 error: these patterns are unneeded as the `..` pattern can match those elements
80 --> $DIR/unneeded_wildcard_pattern.rs:34:19
82 LL | if let S(0, .., _, _) = s {};
83 | ^^^^^^ help: remove them
85 error: these patterns are unneeded as the `..` pattern can match those elements
86 --> $DIR/unneeded_wildcard_pattern.rs:43:23
88 LL | if let S(0, .., _, _,) = s {};
89 | ^^^^^^ help: remove them
91 error: aborting due to 14 previous errors