]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/bad-concat.rs
Sync rust-lang/portable-simd@03f6fbb21e6050da2a05b3ce8f480c020b384916
[rust.git] / src / test / ui / macros / bad-concat.rs
1 fn main() {
2     let x: u32 = 42;
3     let y: f64 = 3.14;
4     let z = "foo";
5     let _ = concat!(x, y, z, "bar");
6     //~^ ERROR expected a literal
7     //~| NOTE only literals
8 }