File: must_use.stderr

package info (click to toggle)
rust-async-recursion 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 332 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 567 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
error: unused pinned boxed `Future` trait object that must be used
 --> tests/ui/must_use.rs:9:5
  |
9 |     apples(3);
  |     ^^^^^^^^^
  |
  = note: futures do nothing unless you `.await` or poll them
note: the lint level is defined here
 --> tests/ui/must_use.rs:1:9
  |
1 | #![deny(unused_must_use)]
  |         ^^^^^^^^^^^^^^^

error: unused return value of `apples` that must be used
 --> tests/ui/must_use.rs:9:5
  |
9 |     apples(3);
  |     ^^^^^^^^^
  |
help: use `let _ = ...` to ignore the resulting value
  |
9 |     let _ = apples(3);
  |     +++++++