rust/tests/ui/lint/unused/must_use-in-stdlib-traits.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-12-28 11:15:16 -06:00
error: unused implementer of `Iterator` that must be used
--> $DIR/must_use-in-stdlib-traits.rs:42:4
|
LL | iterator();
| ^^^^^^^^^^
2020-12-28 11:15:16 -06:00
|
2022-09-18 10:55:36 -05:00
= note: iterators are lazy and do nothing unless consumed
2020-12-28 11:15:16 -06:00
note: the lint level is defined here
--> $DIR/must_use-in-stdlib-traits.rs:1:9
|
LL | #![deny(unused_must_use)]
| ^^^^^^^^^^^^^^^
error: unused implementer of `Future` that must be used
--> $DIR/must_use-in-stdlib-traits.rs:43:4
|
LL | future();
| ^^^^^^^^
2020-12-28 11:15:16 -06:00
|
= note: futures do nothing unless you `.await` or poll them
error: unused implementer of `FnOnce` that must be used
--> $DIR/must_use-in-stdlib-traits.rs:44:4
|
LL | square_fn_once();
| ^^^^^^^^^^^^^^^^
2020-12-28 11:15:16 -06:00
|
= note: closures are lazy and do nothing unless called
error: unused implementer of `FnMut` that must be used
--> $DIR/must_use-in-stdlib-traits.rs:45:4
|
LL | square_fn_mut();
| ^^^^^^^^^^^^^^^
2020-12-28 11:15:16 -06:00
|
= note: closures are lazy and do nothing unless called
error: unused implementer of `Fn` that must be used
--> $DIR/must_use-in-stdlib-traits.rs:46:4
|
LL | square_fn();
| ^^^^^^^^^^^
2020-12-28 11:15:16 -06:00
|
= note: closures are lazy and do nothing unless called
error: aborting due to 5 previous errors