rust/tests/ui/result_unit_error.stderr

36 lines
1 KiB
Text
Raw Normal View History

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