File: must-use.stderr

package info (click to toggle)
rust-anyhow 1.0.99-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 500 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: unused return value of `anyhow::__private::must_use` that must be used
 --> tests/ui/must-use.rs:8:9
  |
8 |         anyhow!("it failed");
  |         ^^^^^^^^^^^^^^^^^^^^
  |
note: the lint level is defined here
 --> tests/ui/must-use.rs:1:9
  |
1 | #![deny(unused_must_use)]
  |         ^^^^^^^^^^^^^^^
help: use `let _ = ...` to ignore the resulting value
  |
8 |         let _ = anyhow!("it failed");
  |         +++++++