Skip to content

Commit 3175fb2

Browse files
committed
Bless tests/ui/macros/must-use-in-macro-55516.rs
1 parent 05d3d17 commit 3175fb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ LL | write!(&mut example, "{}", 42);
77
= note: this `Result` may be an `Err` variant, which should be handled
88
= note: `-W unused-must-use` implied by `-W unused`
99
= 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+
| +++++++
1114

1215
warning: 1 warning emitted
1316

0 commit comments

Comments
 (0)