2021-01-28 18:01:36 +02:00
|
|
|
error: unused `Result` in tuple element 0 that must be used
|
2019-05-27 20:38:13 +01:00
|
|
|
--> $DIR/must_use-tuple.rs:8:6
|
2019-05-23 22:56:31 +01:00
|
|
|
|
|
|
|
|
LL | (Ok::<(), ()>(()),);
|
2019-05-27 16:48:43 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^
|
2019-05-23 22:56:31 +01:00
|
|
|
|
|
2022-09-18 19:55:36 +04:00
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-05-23 22:56:31 +01:00
|
|
|
--> $DIR/must_use-tuple.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2021-01-28 18:01:36 +02:00
|
|
|
error: unused `Result` in tuple element 0 that must be used
|
2019-05-27 20:38:13 +01:00
|
|
|
--> $DIR/must_use-tuple.rs:10:6
|
2019-05-27 16:48:43 +01:00
|
|
|
|
|
|
|
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
|
2021-01-28 18:01:36 +02:00
|
|
|
error: unused `Result` in tuple element 2 that must be used
|
2019-05-27 20:38:13 +01:00
|
|
|
--> $DIR/must_use-tuple.rs:10:27
|
2019-05-27 16:48:43 +01:00
|
|
|
|
|
|
|
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
|
2021-01-28 18:01:36 +02:00
|
|
|
error: unused `Result` in tuple element 0 that must be used
|
2019-05-27 20:38:13 +01:00
|
|
|
--> $DIR/must_use-tuple.rs:14:5
|
|
|
|
|
|
|
|
|
LL | foo();
|
2022-02-25 11:30:16 +00:00
|
|
|
| ^^^^^
|
2019-05-27 20:38:13 +01:00
|
|
|
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
|
2021-01-28 18:01:36 +02:00
|
|
|
error: unused `Result` in tuple element 0 that must be used
|
2022-02-25 11:30:16 +00:00
|
|
|
--> $DIR/must_use-tuple.rs:16:7
|
2019-06-03 18:50:32 +01:00
|
|
|
|
|
|
|
|
LL | ((Err::<(), ()>(()), ()), ());
|
2022-02-25 11:30:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
2019-06-03 18:50:32 +01:00
|
|
|
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2019-05-23 22:56:31 +01:00
|
|
|
|