mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 08:53:35 +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.
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
|
|
|