syntax: +
has incorrect priority in trait object types starting with for
#39317
Labels
A-parser
Area: The parsing of Rust source code to an AST
&for<'a> Tr<'a> + Send
is parsed as&(for<'a> Tr<'a> + Send)
while RFC 438 tells that it should be parsed as(&for<'a> Tr<'a>) + Send
and therefore be invalid.Another example:
Fn() -> for<'a> Tr<'a> + Send
is parsed asFn() -> (for<'a> Tr<'a> + Send)
instead of(Fn() -> for<'a> Tr<'a>) + Send
.cc #39158 (comment)
The text was updated successfully, but these errors were encountered: