Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 264 Bytes
// build-pass (FIXME(62277): could be 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
}
You can’t perform that action at this time.