2019-09-12 06:25:05 +00:00
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:13:18
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let (0, .., _) = t {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
|
2020-01-31 19:21:10 +00:00
|
|
|
note: the lint level is defined here
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:4:9
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::unneeded_wildcard_pattern)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:14:16
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let (0, _, ..) = t {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
2019-09-22 07:10:39 +00:00
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:15:13
|
2019-09-22 07:10:39 +00:00
|
|
|
|
|
|
|
|
LL | if let (_, .., 0) = t {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:16:15
|
2019-09-22 07:10:39 +00:00
|
|
|
|
|
|
|
|
LL | if let (.., _, 0) = t {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
2019-09-12 06:25:05 +00:00
|
|
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:17:16
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let (0, _, _, ..) = t {};
|
|
|
|
| ^^^^^^ help: remove them
|
|
|
|
|
|
|
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:18:18
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let (0, .., _, _) = t {};
|
|
|
|
| ^^^^^^ help: remove them
|
|
|
|
|
|
|
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:27:22
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let (0, .., _, _,) = t {};
|
|
|
|
| ^^^^^^ help: remove them
|
|
|
|
|
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:34:19
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let S(0, .., _) = s {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:35:17
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let S(0, _, ..) = s {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
2019-09-22 07:10:39 +00:00
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:36:14
|
2019-09-22 07:10:39 +00:00
|
|
|
|
|
|
|
|
LL | if let S(_, .., 0) = s {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
|
|
|
error: this pattern is unneeded as the `..` pattern can match that element
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:37:16
|
2019-09-22 07:10:39 +00:00
|
|
|
|
|
|
|
|
LL | if let S(.., _, 0) = s {};
|
|
|
|
| ^^^ help: remove it
|
|
|
|
|
2019-09-12 06:25:05 +00:00
|
|
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:38:17
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let S(0, _, _, ..) = s {};
|
|
|
|
| ^^^^^^ help: remove them
|
|
|
|
|
|
|
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:39:19
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let S(0, .., _, _) = s {};
|
|
|
|
| ^^^^^^ help: remove them
|
|
|
|
|
|
|
|
error: these patterns are unneeded as the `..` pattern can match those elements
|
2023-06-23 03:01:17 +00:00
|
|
|
--> $DIR/unneeded_wildcard_pattern.rs:48:23
|
2019-09-12 06:25:05 +00:00
|
|
|
|
|
|
|
|
LL | if let S(0, .., _, _,) = s {};
|
|
|
|
| ^^^^^^ help: remove them
|
|
|
|
|
2019-09-22 07:10:39 +00:00
|
|
|
error: aborting due to 14 previous errors
|
2019-09-12 06:25:05 +00:00
|
|
|
|