]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
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 | | | |
2b03887a | 7 | = note: iterators are lazy and do nothing unless consumed |
5869c6ff XL |
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 | | ^^^^^^^^^^^^^^^ | |
5869c6ff XL |
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 |