2020-10-11 15:15:56 -05:00
|
|
|
error: this returns a `Result<_, ()>
|
2020-10-11 06:27:20 -05:00
|
|
|
--> $DIR/result_unit_error.rs:4:1
|
|
|
|
|
|
|
|
|
LL | pub fn returns_unit_error() -> Result<u32, ()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::result-unit-err` implied by `-D warnings`
|
2020-10-11 15:15:56 -05:00
|
|
|
= help: use a custom Error type instead
|
2020-10-11 06:27:20 -05:00
|
|
|
|
2020-10-11 15:15:56 -05:00
|
|
|
error: this returns a `Result<_, ()>
|
2020-10-11 06:27:20 -05:00
|
|
|
--> $DIR/result_unit_error.rs:13:5
|
|
|
|
|
|
|
|
|
LL | fn get_that_error(&self) -> Result<bool, ()>;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-10-11 15:15:56 -05:00
|
|
|
= help: use a custom Error type instead
|
2020-10-11 06:27:20 -05:00
|
|
|
|
2020-10-11 15:15:56 -05:00
|
|
|
error: this returns a `Result<_, ()>
|
2020-10-11 06:27:20 -05:00
|
|
|
--> $DIR/result_unit_error.rs:15:5
|
|
|
|
|
|
|
|
|
LL | fn get_this_one_too(&self) -> Result<bool, ()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-10-11 15:15:56 -05:00
|
|
|
= help: use a custom Error type instead
|
2020-10-11 06:27:20 -05:00
|
|
|
|
2020-10-11 15:15:56 -05:00
|
|
|
error: this returns a `Result<_, ()>
|
2020-10-11 06:27:20 -05:00
|
|
|
--> $DIR/result_unit_error.rs:33:5
|
|
|
|
|
|
|
|
|
LL | pub fn unit_error(&self) -> Result<usize, ()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-10-11 15:15:56 -05:00
|
|
|
= help: use a custom Error type instead
|
2020-10-11 06:27:20 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|