]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/issue-30143.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[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 }