Sign in
fuchsia
/
third_party
/
rust
/
3bee49f42b6dfb039d2a8e59e5181e26531c3c11
/
.
/
src
/
test
/
ui
/
macros
/
must-use-in-macro-55516.rs
blob: 10e5646dc3d94bd701bc70d9ac6e72d9d061e544 [
file
] [
log
] [
blame
]
// compile-pass
// compile-flags: -Wunused
// make sure write!() can't hide its unused Result
fn
main
()
{
use
std
::
fmt
::
Write
;
let
mut
example
=
String
::
new
();
write
!(&
mut
example
,
"{}"
,
42
);
//~WARN must be used
}