blob: e7c3462867b5990b063bb9be1b7e4fd6a92be307 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// check-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
}
|