I accidentally typed impl for T instead of impl T, and the diagnostic (playground) wasn't very helpful:
|
3 | impl for T {}
| ^ expected `<` here
This appears to be because of this syntax:
However it makes no sense in this case. Perhaps better diagnostics would look something like this:
|
3 | impl for T {}
| ^ expected type
I accidentally typed
impl for Tinstead ofimpl T, and the diagnostic (playground) wasn't very helpful:This appears to be because of this syntax:
However it makes no sense in this case. Perhaps better diagnostics would look something like this: