Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
src
/
test
/
ui
/
macros
/
must-use-in-macro-55516.rs
blob: a5de32e5d2a8b84eb26a11be46405898700c586d [
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
}