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

48 lines
1.4 KiB
Plaintext
Raw Normal View History

2019-05-28 20:12:48 +01:00
error: unused `std::result::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-23 22:56:31 +01: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-28 20:12:48 +01:00
error: unused `std::result::Result` in tuple element 0 that must be used
2019-05-27 20:38:13 +01:00
--> $DIR/must_use-tuple.rs:10:6
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
| ^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
2019-05-28 20:12:48 +01:00
error: unused `std::result::Result` in tuple element 2 that must be used
2019-05-27 20:38:13 +01:00
--> $DIR/must_use-tuple.rs:10:27
|
LL | (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
| ^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
2019-05-28 20:12:48 +01:00
error: unused `std::result::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();
| ^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
2019-06-03 18:50:32 +01:00
error: unused `std::result::Result` in tuple element 0 that must be used
--> $DIR/must_use-tuple.rs:16:6
|
LL | ((Err::<(), ()>(()), ()), ());
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= 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