rust/tests/ui/macros/issue-106837.rs
2023-01-15 12:48:53 +13: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
}