File: must-use.stderr

package info (click to toggle)
rust-async-trait 0.1.83-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: makefile: 2
file content (23 lines) | stat: -rw-r--r-- 593 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:18:5
   |
18 |     Thing.f();
   |     ^^^^^^^^^
   |
   = 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 `Interface::f` that must be used
  --> tests/ui/must-use.rs:18:5
   |
18 |     Thing.f();
   |     ^^^^^^^^^
   |
help: use `let _ = ...` to ignore the resulting value
   |
18 |     let _ = Thing.f();
   |     +++++++