]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-30143.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.git] / src / test / ui / macros / issue-30143.rs
1 use std::fmt::Write;
2
3 fn main() {
4     println!(0);
5     //~^ ERROR format argument must be a string literal
6     eprintln!('a');
7     //~^ ERROR format argument must be a string literal
8     let mut s = String::new();
9     writeln!(s, true).unwrap();
10     //~^ ERROR format argument must be a string literal
11 }