mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
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
|
|
}
|