summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/bad-concat.rs
blob: 263cd074d5a2663fdb28df8456011611d1b74fbe (plain)
1
2
3
4
5
6
7
8
fn main() {
    let x: u32 = 42;
    let y: f64 = 3.14;
    let z = "foo";
    let _ = concat!(x, y, z, "bar");
    //~^ ERROR expected a literal
    //~| NOTE only literals
}