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