Files
rust/tests/ui/unneeded_wildcard_pattern.stderr

93 lines
3.2 KiB
Plaintext
Raw Normal View History

2019-09-12 08:25:05 +02:00
error: this pattern is unneeded as the `..` pattern can match that element
2024-02-17 12:16:29 +00:00
--> tests/ui/unneeded_wildcard_pattern.rs:12:18
2019-09-12 08:25:05 +02:00
|
LL | if let (0, .., _) = t {};
| ^^^ help: remove it
|
2020-01-31 20:21:10 +01:00
note: the lint level is defined here
2024-02-17 12:16:29 +00:00
--> tests/ui/unneeded_wildcard_pattern.rs:3:9
2019-09-12 08:25:05 +02:00
|
LL | #![deny(clippy::unneeded_wildcard_pattern)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: this pattern is unneeded as the `..` pattern can match that element
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:14:16
2019-09-12 08:25:05 +02:00
|
LL | if let (0, _, ..) = t {};
| ^^^ help: remove it
error: this pattern is unneeded as the `..` pattern can match that element
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:16:13
|
LL | if let (_, .., 0) = t {};
| ^^^ help: remove it
error: this pattern is unneeded as the `..` pattern can match that element
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:18:15
|
LL | if let (.., _, 0) = t {};
| ^^^ help: remove it
2019-09-12 08:25:05 +02:00
error: these patterns are unneeded as the `..` pattern can match those elements
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:20:16
2019-09-12 08:25:05 +02:00
|
LL | if let (0, _, _, ..) = t {};
| ^^^^^^ help: remove them
error: these patterns are unneeded as the `..` pattern can match those elements
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:22:18
2019-09-12 08:25:05 +02:00
|
LL | if let (0, .., _, _) = t {};
| ^^^^^^ help: remove them
error: these patterns are unneeded as the `..` pattern can match those elements
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:32:22
2019-09-12 08:25:05 +02:00
|
LL | if let (0, .., _, _,) = t {};
| ^^^^^^ help: remove them
error: this pattern is unneeded as the `..` pattern can match that element
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:40:19
2019-09-12 08:25:05 +02:00
|
LL | if let S(0, .., _) = s {};
| ^^^ help: remove it
error: this pattern is unneeded as the `..` pattern can match that element
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:42:17
2019-09-12 08:25:05 +02:00
|
LL | if let S(0, _, ..) = s {};
| ^^^ help: remove it
error: this pattern is unneeded as the `..` pattern can match that element
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:44:14
|
LL | if let S(_, .., 0) = s {};
| ^^^ help: remove it
error: this pattern is unneeded as the `..` pattern can match that element
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:46:16
|
LL | if let S(.., _, 0) = s {};
| ^^^ help: remove it
2019-09-12 08:25:05 +02:00
error: these patterns are unneeded as the `..` pattern can match those elements
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:48:17
2019-09-12 08:25:05 +02:00
|
LL | if let S(0, _, _, ..) = s {};
| ^^^^^^ help: remove them
error: these patterns are unneeded as the `..` pattern can match those elements
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:50:19
2019-09-12 08:25:05 +02:00
|
LL | if let S(0, .., _, _) = s {};
| ^^^^^^ help: remove them
error: these patterns are unneeded as the `..` pattern can match those elements
2025-02-11 17:57:08 +01:00
--> tests/ui/unneeded_wildcard_pattern.rs:60:23
2019-09-12 08:25:05 +02:00
|
LL | if let S(0, .., _, _,) = s {};
| ^^^^^^ help: remove them
error: aborting due to 14 previous errors
2019-09-12 08:25:05 +02:00