mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
e572a194bf
Given ```rust macro_rules! a { ( ) => { impl<'b> c for d { e::<f'g> } }; } ``` ensure an error is emitted. Fix #123079.
15 lines
384 B
Plaintext
15 lines
384 B
Plaintext
error: prefix `f` is unknown
|
|
--> $DIR/dont-ice-on-invalid-lifetime-in-macro-definition.rs:5:17
|
|
|
|
|
LL | e::<f'g>
|
|
| ^ unknown prefix
|
|
|
|
|
= note: prefixed identifiers and literals are reserved since Rust 2021
|
|
help: consider inserting whitespace here
|
|
|
|
|
LL | e::<f 'g>
|
|
| +
|
|
|
|
error: aborting due to 1 previous error
|
|
|