| @@ -7,7 +7,10 @@ LL | write!(&mut example, "{}", 42); |
|
|
| 7 |
7 |
= note: this `Result` may be an `Err` variant, which should be handled |
| 8 |
8 |
= note: `-W unused-must-use` implied by `-W unused` |
| 9 |
9 |
= help: to override `-W unused` add `#[allow(unused_must_use)]` |
| 10 |
|
- = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) |
|
10 |
+help: use `let _ = ...` to ignore the resulting value |
|
11 |
+ | |
|
12 |
+LL | let _ = write!(&mut example, "{}", 42); |
|
13 |
+ | +++++++ |
| 11 |
14 |
|
| 12 |
15 |
warning: 1 warning emitted |
| 13 |
16 |
|