unboxed closure sugar not working in trait objects #17703
Labels
A-closures
Area: Closures (`|…| { … }`)
A-parser
Area: The lexing & parsing of Rust source code to an AST
#17041 implemented unboxed closure sugar parsing for trait bounds, but it doesn't seem to be implemented for trait objects.
I realize that this example probably wouldn't work anyway due to the lack of higher-rank lifetimes, but the point is that the compiler yields a parser error.
playpen sample
@p1start observed this as well.
The text was updated successfully, but these errors were encountered: