69 lines
2.3 KiB
Plaintext
69 lines
2.3 KiB
Plaintext
|
error: this pattern is unneeded as the `..` pattern can match that element
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:8:18
|
||
|
|
|
||
|
LL | if let (0, .., _) = t {};
|
||
|
| ^^^ help: remove it
|
||
|
|
|
||
|
note: lint level defined here
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:3:9
|
||
|
|
|
||
|
LL | #![deny(clippy::unneeded_wildcard_pattern)]
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: this pattern is unneeded as the `..` pattern can match that element
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:9:16
|
||
|
|
|
||
|
LL | if let (0, _, ..) = t {};
|
||
|
| ^^^ help: remove it
|
||
|
|
||
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:10:16
|
||
|
|
|
||
|
LL | if let (0, _, _, ..) = t {};
|
||
|
| ^^^^^^ help: remove them
|
||
|
|
||
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:11:18
|
||
|
|
|
||
|
LL | if let (0, .., _, _) = t {};
|
||
|
| ^^^^^^ help: remove them
|
||
|
|
||
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:20:22
|
||
|
|
|
||
|
LL | if let (0, .., _, _,) = t {};
|
||
|
| ^^^^^^ help: remove them
|
||
|
|
||
|
error: this pattern is unneeded as the `..` pattern can match that element
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:27:19
|
||
|
|
|
||
|
LL | if let S(0, .., _) = s {};
|
||
|
| ^^^ help: remove it
|
||
|
|
||
|
error: this pattern is unneeded as the `..` pattern can match that element
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:28:17
|
||
|
|
|
||
|
LL | if let S(0, _, ..) = s {};
|
||
|
| ^^^ help: remove it
|
||
|
|
||
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:29:17
|
||
|
|
|
||
|
LL | if let S(0, _, _, ..) = s {};
|
||
|
| ^^^^^^ help: remove them
|
||
|
|
||
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:30:19
|
||
|
|
|
||
|
LL | if let S(0, .., _, _) = s {};
|
||
|
| ^^^^^^ help: remove them
|
||
|
|
||
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
||
|
--> $DIR/unneeded_wildcard_pattern.rs:39:23
|
||
|
|
|
||
|
LL | if let S(0, .., _, _,) = s {};
|
||
|
| ^^^^^^ help: remove them
|
||
|
|
||
|
error: aborting due to 10 previous errors
|
||
|
|