mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-07 12:33:14 +00:00
![Esteban Küber](/assets/img/avatar_default.png)
Given ```rust macro_rules! a { ( ) => { impl<'b> c for d { e::<f'g> } }; } ``` ensure an error is emitted. Fix #123079.
10 lines
196 B
Rust
10 lines
196 B
Rust
//@edition:2021
|
|
macro_rules! foo {
|
|
() => {
|
|
println!('hello world');
|
|
//~^ ERROR unterminated character literal
|
|
//~| ERROR prefix `world` is unknown
|
|
}
|
|
}
|
|
fn main() {}
|