rustc/tests/ui/macros/issue-106837.rs
2023-09-14 08:56:40 +02:00

11 lines
163 B
Rust

fn main() {
concat!(-42);
concat!(-3.14);
concat!(-"hello");
//~^ ERROR expected a literal
concat!(--1);
//~^ ERROR expected a literal
}