mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
12 lines
304 B
Rust
12 lines
304 B
Rust
use std::fmt::Write;
|
|
|
|
fn main() {
|
|
println!(0);
|
|
//~^ ERROR format argument must be a string literal
|
|
eprintln!('a');
|
|
//~^ ERROR format argument must be a string literal
|
|
let mut s = String::new();
|
|
writeln!(s, true).unwrap();
|
|
//~^ ERROR format argument must be a string literal
|
|
}
|