]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/must_use-in-stdlib-traits.stderr
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / must_use-in-stdlib-traits.stderr
1 error: unused implementer of `Iterator` that must be used
2   --> $DIR/must_use-in-stdlib-traits.rs:42:4
3    |
4 LL |    iterator();
5    |    ^^^^^^^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/must_use-in-stdlib-traits.rs:1:9
9    |
10 LL | #![deny(unused_must_use)]
11    |         ^^^^^^^^^^^^^^^
12    = note: iterators are lazy and do nothing unless consumed
13
14 error: unused implementer of `Future` that must be used
15   --> $DIR/must_use-in-stdlib-traits.rs:43:4
16    |
17 LL |    future();
18    |    ^^^^^^^^^
19    |
20    = note: futures do nothing unless you `.await` or poll them
21
22 error: unused implementer of `FnOnce` that must be used
23   --> $DIR/must_use-in-stdlib-traits.rs:44:4
24    |
25 LL |    square_fn_once();
26    |    ^^^^^^^^^^^^^^^^^
27    |
28    = note: closures are lazy and do nothing unless called
29
30 error: unused implementer of `FnMut` that must be used
31   --> $DIR/must_use-in-stdlib-traits.rs:45:4
32    |
33 LL |    square_fn_mut();
34    |    ^^^^^^^^^^^^^^^^
35    |
36    = note: closures are lazy and do nothing unless called
37
38 error: unused implementer of `Fn` that must be used
39   --> $DIR/must_use-in-stdlib-traits.rs:46:4
40    |
41 LL |    square_fn();
42    |    ^^^^^^^^^^^^
43    |
44    = note: closures are lazy and do nothing unless called
45
46 error: aborting due to 5 previous errors
47