about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/ignored_unit_patterns.stderr
blob: 00a254e39192c9b5dbe84ddef7bc74adb62421fc (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
error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:16:12
   |
LL |         Ok(_) => {},
   |            ^ help: use `()` instead of `_`: `()`
   |
   = note: `-D clippy::ignored-unit-patterns` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::ignored_unit_patterns)]`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:17:13
   |
LL |         Err(_) => {},
   |             ^ help: use `()` instead of `_`: `()`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:19:15
   |
LL |     if let Ok(_) = foo() {}
   |               ^ help: use `()` instead of `_`: `()`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:21:28
   |
LL |     let _ = foo().map_err(|_| todo!());
   |                            ^ help: use `()` instead of `_`: `()`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:27:16
   |
LL |             Ok(_) => {},
   |                ^ help: use `()` instead of `_`: `()`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:29:17
   |
LL |             Err(_) => {},
   |                 ^ help: use `()` instead of `_`: `()`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:41:9
   |
LL |     let _ = foo().unwrap();
   |         ^ help: use `()` instead of `_`: `()`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:50:13
   |
LL |         (1, _) => unimplemented!(),
   |             ^ help: use `()` instead of `_`: `()`

error: matching over `()` is more explicit
  --> tests/ui/ignored_unit_patterns.rs:57:13
   |
LL |     for (x, _) in v {
   |             ^ help: use `()` instead of `_`: `()`

error: aborting due to 9 previous errors