2022-08-16 09:56:42 -05:00
|
|
|
error: unused implementer of `Future` that must be used
|
|
|
|
--> $DIR/unused-async.rs:31:5
|
|
|
|
|
|
|
|
|
LL | foo();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2022-11-10 21:01:33 -06:00
|
|
|
= note: futures do nothing unless you `.await` or poll them
|
2022-08-16 09:56:42 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/unused-async.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(unused_must_use)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unused return value of `foo` that must be used
|
|
|
|
--> $DIR/unused-async.rs:31:5
|
|
|
|
|
|
|
|
|
LL | foo();
|
|
|
|
| ^^^^^
|
2023-03-10 23:28:05 -06:00
|
|
|
|
|
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = foo();
|
|
|
|
| +++++++
|
2022-08-16 09:56:42 -05:00
|
|
|
|
2022-08-17 10:21:43 -05:00
|
|
|
error: unused output of future returned by `foo` that must be used
|
2022-08-16 09:56:42 -05:00
|
|
|
--> $DIR/unused-async.rs:33:5
|
|
|
|
|
|
|
|
|
LL | foo().await;
|
|
|
|
| ^^^^^^^^^^^
|
2023-03-10 23:28:05 -06:00
|
|
|
|
|
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = foo().await;
|
|
|
|
| +++++++
|
2022-08-16 09:56:42 -05:00
|
|
|
|
|
|
|
error: unused implementer of `Future` that must be used
|
|
|
|
--> $DIR/unused-async.rs:34:5
|
|
|
|
|
|
|
|
|
LL | bar();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: futures do nothing unless you `.await` or poll them
|
|
|
|
|
|
|
|
error: unused return value of `bar` that must be used
|
|
|
|
--> $DIR/unused-async.rs:34:5
|
|
|
|
|
|
|
|
|
LL | bar();
|
|
|
|
| ^^^^^
|
2023-03-10 23:28:05 -06:00
|
|
|
|
|
|
|
|
help: use `let _ = ...` to ignore the resulting value
|
|
|
|
|
|
|
|
|
LL | let _ = bar();
|
|
|
|
| +++++++
|
2022-08-16 09:56:42 -05:00
|
|
|
|
|
|
|
error: unused implementer of `Future` that must be used
|
|
|
|
--> $DIR/unused-async.rs:37:5
|
|
|
|
|
|
|
|
|
LL | baz();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: futures do nothing unless you `.await` or poll them
|
|
|
|
|
2023-05-11 21:08:39 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2021-10-06 15:19:39 -05:00
|
|
|
|