2019-05-23 16:56:31 -05:00
|
|
|
error: unused `std::result::Result` that must be used
|
2019-05-27 10:48:43 -05:00
|
|
|
--> $DIR/must_use-tuple.rs:4: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
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/must_use-tuple.rs:1:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
|
2019-05-27 10:48:43 -05:00
|
|
|
error: unused `std::result::Result` that must be used
|
|
|
|
--> $DIR/must_use-tuple.rs:6:6
|
|
|
|
|
|
|
|
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
|
|
|
|
error: unused `std::result::Result` that must be used
|
|
|
|
--> $DIR/must_use-tuple.rs:6:27
|
|
|
|
|
|
|
|
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2019-05-23 16:56:31 -05:00
|
|
|
|