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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.4 KiB
Plaintext
Raw Normal View History

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-23 16:56:31 -05:00
|
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)]
| ^^^^^^^^^^^^^^^
= 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:10:6
|
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
|
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();
| ^^^^^
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
--> $DIR/must_use-tuple.rs:16:7
2019-06-03 12:50:32 -05:00
|
LL | ((Err::<(), ()>(()), ()), ());
| ^^^^^^^^^^^^^^^^^
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