Closed
Description
The program:
pub LexicalEnv<'a>
elicits the confusing error message:
error: can't qualify macro invocation with `pub`
--> src/lib.rs:1:1
|
1 | pub LexicalEnv<'a>
| ^^^
|
= help: try adjusting the macro to put `pub` inside the invocation
error: expected one of `!` or `::`, found `<`
--> src/lib.rs:1:15
|
1 | pub LexicalEnv<'a>
| ^ expected one of `!` or `::` here
Similar issues have been filed before (#40006 and #38911, at least), and were not closed with an indication that the problem wasn't expected to be fixed, so I'm going ahead and filing this. This specific case was mentioned in a comment by @fschutt.