rust/tests/ui/macros/bad-concat.rs
2023-01-11 09:32:08 +00:00

9 lines
176 B
Rust

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
}