]> git.lizzy.rs Git - rust.git/blob - tests/ui/result_unit_error.stderr
Auto merge of #6403 - camsteffen:similar-names-underscore, r=Manishearth
[rust.git] / tests / ui / result_unit_error.stderr
1 error: this returns a `Result<_, ()>
2   --> $DIR/result_unit_error.rs:5: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:14: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:16: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:34:5
28    |
29 LL |     pub fn unit_error(&self) -> Result<usize, ()> {
30    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31    |
32    = help: use a custom Error type instead
33
34 error: aborting due to 4 previous errors
35