rust/src/test/ui/lint/must_use-tuple.stderr

32 lines
925 B
Plaintext
Raw Normal View History

2019-05-23 16:56:31 -05:00
error: unused `std::result::Result` that must be used
--> $DIR/must_use-tuple.rs:4:6
2019-05-23 16:56:31 -05:00
|
LL | (Ok::<(), ()>(()),);
| ^^^^^^^^^^^^^^^^
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
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