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`
|
2023-07-25 17:40:04 +00:00
|
|
|
= help: to override `-W unused` add `#[allow(unused_must_use)]`
|
2021-02-13 19:52:25 +00:00
|
|
|
= 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
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|