mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
error: unused `Result` in tuple element 0 that must be used
|
|
--> $DIR/must_use-tuple.rs:8:6
|
|
|
|
|
LL | (Ok::<(), ()>(()),);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
note: the lint level is defined here
|
|
--> $DIR/must_use-tuple.rs:1:9
|
|
|
|
|
LL | #![deny(unused_must_use)]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: unused `Result` in tuple element 0 that must be used
|
|
--> $DIR/must_use-tuple.rs:10:6
|
|
|
|
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
error: unused `Result` in tuple element 2 that must be used
|
|
--> $DIR/must_use-tuple.rs:10:27
|
|
|
|
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
error: unused `Result` in tuple element 0 that must be used
|
|
--> $DIR/must_use-tuple.rs:14:5
|
|
|
|
|
LL | foo();
|
|
| ^^^^^
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
error: unused `Result` in tuple element 0 that must be used
|
|
--> $DIR/must_use-tuple.rs:16:7
|
|
|
|
|
LL | ((Err::<(), ()>(()), ()), ());
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this `Result` may be an `Err` variant, which should be handled
|
|
|
|
error: aborting due to 5 previous errors
|
|
|