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