summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/issue-30143.rs
blob: ac4c1da5cb7052f91f263e1b94f8e03238ea1448 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}