]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/unused/must_use-in-stdlib-traits.stderr
ef738708d5f4e56e1f54e85c57e979d6ff685e14
[rustc.git] / src / test / ui / lint / unused / 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: iterators are lazy and do nothing unless consumed
8 note: the lint level is defined here
9 --> $DIR/must_use-in-stdlib-traits.rs:1:9
10 |
11 LL | #![deny(unused_must_use)]
12 | ^^^^^^^^^^^^^^^
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