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