2021-04-08 10:50:13 -05:00
|
|
|
error: this returns a `Result<_, ()>`
|
2021-02-25 04:25:22 -06:00
|
|
|
--> $DIR/result_unit_error.rs:3:1
|
2020-10-23 15:16:59 -05:00
|
|
|
|
|
|
|
|
LL | pub fn returns_unit_error() -> Result<u32, ()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
= help: use a custom `Error` type instead
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::result-unit-err` implied by `-D warnings`
|
2020-10-23 15:16:59 -05:00
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
error: this returns a `Result<_, ()>`
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/result_unit_error.rs:13:5
|
2020-10-23 15:16:59 -05:00
|
|
|
|
|
|
|
|
LL | fn get_that_error(&self) -> Result<bool, ()>;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
= help: use a custom `Error` type instead
|
2020-10-23 15:16:59 -05:00
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
error: this returns a `Result<_, ()>`
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/result_unit_error.rs:16:5
|
2020-10-23 15:16:59 -05:00
|
|
|
|
|
|
|
|
LL | fn get_this_one_too(&self) -> Result<bool, ()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
= help: use a custom `Error` type instead
|
2020-10-23 15:16:59 -05:00
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
error: this returns a `Result<_, ()>`
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/result_unit_error.rs:35:5
|
2020-10-23 15:16:59 -05:00
|
|
|
|
|
|
|
|
LL | pub fn unit_error(&self) -> Result<usize, ()> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
= help: use a custom `Error` type instead
|
2020-10-23 15:16:59 -05:00
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
error: this returns a `Result<_, ()>`
|
2023-07-28 14:35:48 -05:00
|
|
|
--> $DIR/result_unit_error.rs:45:5
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
|
LL | pub fn should_lint() -> ResInv<(), usize> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2021-04-08 10:50:13 -05:00
|
|
|
= help: use a custom `Error` type instead
|
2021-02-25 04:25:22 -06:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2020-10-23 15:16:59 -05:00
|
|
|
|