mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +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
|
||
|
}
|