rust/tests/ui/parser/lit-err-in-macro.rs

11 lines
158 B
Rust
Raw Normal View History

2023-06-14 20:55:30 -05:00
macro_rules! f {
($abi:literal) => {
extern $abi fn f() {}
}
}
f!("Foo"__);
//~^ ERROR suffixes on string literals are invalid
fn main() {}