]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/must_use-tuple.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / must_use-tuple.stderr
1 error: unused `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: the lint level is 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 `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 `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 `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: unused `Result` in tuple element 0 that must be used
39   --> $DIR/must_use-tuple.rs:16:6
40    |
41 LL |     ((Err::<(), ()>(()), ()), ());
42    |      ^^^^^^^^^^^^^^^^^^^^^^^
43    |
44    = note: this `Result` may be an `Err` variant, which should be handled
45
46 error: aborting due to 5 previous errors
47