9 lines
176 B
Rust
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
|
|
}
|