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

14 lines
520 B
Plaintext

warning: unused `Result` that must be used
--> $DIR/must-use-in-macro-55516.rs:9:5
|
LL | write!(&mut example, "{}", 42);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= 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)
warning: 1 warning emitted