rust/tests/ui/macros/must-use-in-macro-55516.stderr

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

14 lines
520 B
Plaintext
Raw Normal View History

2021-01-28 16:01:36 +00:00
warning: unused `Result` that must be used
2018-12-25 15:56:47 +00:00
--> $DIR/must-use-in-macro-55516.rs:9:5
2018-11-01 03:32:45 +00:00
|
2019-03-09 12:03:44 +00:00
LL | write!(&mut example, "{}", 42);
2021-10-14 18:28:28 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-11-01 03:32:45 +00:00
|
= note: this `Result` may be an `Err` variant, which should be handled
2022-09-18 15:55:36 +00:00
= note: `-W unused-must-use` implied by `-W unused`
= help: to override `-W unused` add `#[allow(unused_must_use)]`
= note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-11-01 03:32:45 +00:00
warning: 1 warning emitted