]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/result_unit_error.stderr
Rollup merge of #102345 - chenyukang:fix-102182-impl-trait, r=estebank
[rust.git] / src / tools / clippy / tests / ui / result_unit_error.stderr
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    = help: use a custom `Error` type instead
8    = note: `-D clippy::result-unit-err` implied by `-D warnings`
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