]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/must_use-tuple.stderr
Specify tuple element in lint message
[rust.git] / src / test / ui / lint / must_use-tuple.stderr
1 error: unused `std::result::Result` in tuple element 0 that must be used
2   --> $DIR/must_use-tuple.rs:8:6
3    |
4 LL |     (Ok::<(), ()>(()),);
5    |      ^^^^^^^^^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/must_use-tuple.rs:1:9
9    |
10 LL | #![deny(unused_must_use)]
11    |         ^^^^^^^^^^^^^^^
12    = note: this `Result` may be an `Err` variant, which should be handled
13
14 error: unused `std::result::Result` in tuple element 0 that must be used
15   --> $DIR/must_use-tuple.rs:10:6
16    |
17 LL |     (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
18    |      ^^^^^^^^^^^^^^^^
19    |
20    = note: this `Result` may be an `Err` variant, which should be handled
21
22 error: unused `std::result::Result` in tuple element 2 that must be used
23   --> $DIR/must_use-tuple.rs:10:27
24    |
25 LL |     (Ok::<(), ()>(()), 0, Ok::<(), ()>(()), 5);
26    |                           ^^^^^^^^^^^^^^^^
27    |
28    = note: this `Result` may be an `Err` variant, which should be handled
29
30 error: unused `std::result::Result` in tuple element 0 that must be used
31   --> $DIR/must_use-tuple.rs:14:5
32    |
33 LL |     foo();
34    |     ^^^^^^
35    |
36    = note: this `Result` may be an `Err` variant, which should be handled
37
38 error: aborting due to 4 previous errors
39