summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unneeded_wildcard_pattern.stderr
blob: ffbdc049506e0c3a5969b3895f4b14c262959d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
error: this pattern is unneeded as the `..` pattern can match that element
  --> $DIR/unneeded_wildcard_pattern.rs:13:18
   |
LL |     if let (0, .., _) = t {};
   |                  ^^^ help: remove it
   |
note: the lint level is defined here
  --> $DIR/unneeded_wildcard_pattern.rs:4:9
   |
LL | #![deny(clippy::unneeded_wildcard_pattern)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: this pattern is unneeded as the `..` pattern can match that element
  --> $DIR/unneeded_wildcard_pattern.rs:14:16
   |
LL |     if let (0, _, ..) = t {};
   |                ^^^ help: remove it

error: this pattern is unneeded as the `..` pattern can match that element
  --> $DIR/unneeded_wildcard_pattern.rs:15:13
   |
LL |     if let (_, .., 0) = t {};
   |             ^^^ help: remove it

error: this pattern is unneeded as the `..` pattern can match that element
  --> $DIR/unneeded_wildcard_pattern.rs:16:15
   |
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:17: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:18: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:27: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:34: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:35:17
   |
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:36:14
   |
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:37:16
   |
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:38: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:39: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:48:23
   |
LL |         if let S(0, .., _, _,) = s {};
   |                       ^^^^^^ help: remove them

error: aborting due to 14 previous errors