93 lines
3.2 KiB
Plaintext
93 lines
3.2 KiB
Plaintext
error: this pattern is unneeded as the `..` pattern can match that element
|
|
--> tests/ui/unneeded_wildcard_pattern.rs:12:18
|
|
|
|
|
LL | if let (0, .., _) = t {};
|
|
| ^^^ help: remove it
|
|
|
|
|
note: the lint level is defined here
|
|
--> tests/ui/unneeded_wildcard_pattern.rs:3:9
|
|
|
|
|
LL | #![deny(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:14: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:15: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:16: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:17: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:26: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:33: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:34: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:35: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:36: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:37: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:38: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:47:23
|
|
|
|
|
LL | if let S(0, .., _, _,) = s {};
|
|
| ^^^^^^ help: remove them
|
|
|
|
error: aborting due to 14 previous errors
|
|
|