]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: this returns a `Result<_, ()> |
2 | --> $DIR/result_unit_error.rs:3:1 | |
3 | | | |
4 | LL | pub fn returns_unit_error() -> Result<u32, ()> { | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
6 | | | |
7 | = note: `-D clippy::result-unit-err` implied by `-D warnings` | |
8 | = help: use a custom Error type instead | |
9 | ||
10 | error: this returns a `Result<_, ()> | |
11 | --> $DIR/result_unit_error.rs:12:5 | |
12 | | | |
13 | LL | fn get_that_error(&self) -> Result<bool, ()>; | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
15 | | | |
16 | = help: use a custom Error type instead | |
17 | ||
18 | error: this returns a `Result<_, ()> | |
19 | --> $DIR/result_unit_error.rs:14:5 | |
20 | | | |
21 | LL | fn get_this_one_too(&self) -> Result<bool, ()> { | |
22 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
23 | | | |
24 | = help: use a custom Error type instead | |
25 | ||
26 | error: this returns a `Result<_, ()> | |
27 | --> $DIR/result_unit_error.rs:32:5 | |
28 | | | |
29 | LL | pub fn unit_error(&self) -> Result<usize, ()> { | |
30 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
31 | | | |
32 | = help: use a custom Error type instead | |
33 | ||
34 | error: this returns a `Result<_, ()> | |
35 | --> $DIR/result_unit_error.rs:41:5 | |
36 | | | |
37 | LL | pub fn should_lint() -> ResInv<(), usize> { | |
38 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
39 | | | |
40 | = help: use a custom Error type instead | |
41 | ||
42 | error: aborting due to 5 previous errors | |
43 |