mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +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
|
||
|
}
|