Closed
Description
Example error message:
error: expected `*` or `+`
--> src/libcore/macros.rs:767:41
|
767 | impl $( <$( $lifetime ),+> )? Fn<(&'a str,)> for $Name {
| ^
|
= note: `?` is not a macro repetition operator
But it is! I couldn’t figure it out without asking on IRC what’s going on. It is a repetition operator… but not in the 2015 edition. Switching to 2018 would make this error go away.
The error message should mention this.
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.