Open asquared31415 opened 1 year ago
fn uwu<T>(x: T{}) {}
error: expected parameter name, found `{` --> src/lib.rs:1:15 | 1 | fn uwu<T>(x: T{}) {} | ^ expected parameter name error: expected one of `!`, `(`, `)`, `+`, `,`, `::`, or `<`, found `{` --> src/lib.rs:1:15 | 1 | fn uwu<T>(x: T{}) {} | ^ | | | expected one of 7 possible tokens | help: missing `,`
No response
What error would you expect? T {} is not a valid type, maybe it should suggest just removing the braces?
T {}
Code
Current output
Desired output
No response
Rationale and extra context
No response
Other cases
No response
Anything else?
No response