rust/tests/ui/macros/issue-106837.rs

11 lines
163 B
Rust
Raw Normal View History

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