rust/tests/ui/result_unit_error.stderr

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-03-30 21:18:48 -05:00
error: this returns a `Result<_, ()>`
--> $DIR/result_unit_error.rs:3:1
2020-10-11 06:27:20 -05:00
|
LL | pub fn returns_unit_error() -> Result<u32, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::result-unit-err` implied by `-D warnings`
2021-03-30 21:18:48 -05:00
= help: use a custom `Error` type instead
2020-10-11 06:27:20 -05:00
2021-03-30 21:18:48 -05:00
error: this returns a `Result<_, ()>`
--> $DIR/result_unit_error.rs:12:5
2020-10-11 06:27:20 -05:00
|
LL | fn get_that_error(&self) -> Result<bool, ()>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-03-30 21:18:48 -05:00
= help: use a custom `Error` type instead
2020-10-11 06:27:20 -05:00
2021-03-30 21:18:48 -05:00
error: this returns a `Result<_, ()>`
--> $DIR/result_unit_error.rs:14:5
2020-10-11 06:27:20 -05:00
|
LL | fn get_this_one_too(&self) -> Result<bool, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-03-30 21:18:48 -05:00
= help: use a custom `Error` type instead
2020-10-11 06:27:20 -05:00
2021-03-30 21:18:48 -05:00
error: this returns a `Result<_, ()>`
--> $DIR/result_unit_error.rs:32:5
2020-10-11 06:27:20 -05:00
|
LL | pub fn unit_error(&self) -> Result<usize, ()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-03-30 21:18:48 -05:00
= help: use a custom `Error` type instead
2020-10-11 06:27:20 -05:00
2021-03-30 21:18:48 -05:00
error: this returns a `Result<_, ()>`
--> $DIR/result_unit_error.rs:41:5
|
LL | pub fn should_lint() -> ResInv<(), usize> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-03-30 21:18:48 -05:00
= help: use a custom `Error` type instead
error: aborting due to 5 previous errors
2020-10-11 06:27:20 -05:00