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