about summary refs log tree commit diff
path: root/tests/ui/macros/must-use-in-macro-55516.stderr
blob: b93d40d7e5a81cc47ece91cf985431d8bf4ab175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)]`
help: use `let _ = ...` to ignore the resulting value
   |
LL |     let _ = write!(&mut example, "{}", 42);
   |     +++++++

warning: 1 warning emitted