mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
e572a194bf
Given ```rust macro_rules! a { ( ) => { impl<'b> c for d { e::<f'g> } }; } ``` ensure an error is emitted. Fix #123079.
9 lines
236 B
Rust
9 lines
236 B
Rust
//@ revisions: rust2015 rust2018 rust2021
|
|
//@[rust2018] edition:2018
|
|
//@[rust2021] edition:2021
|
|
fn main() {
|
|
println!('hello world');
|
|
//~^ ERROR unterminated character literal
|
|
//[rust2021]~| ERROR prefix `world` is unknown
|
|
}
|