-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is this warning? #32214
Comments
The code which caused this was similar to
note the missing The warning with signature on one line:
|
This also causes the warning: fn f<T:Iterator<Item=(), w>() {}
|
@durka this is a parser and it has no/should not have notion of any such things. I propose “error: expected |
I'm a bit surprised that we bother to warn at all. Either it's an error and we should give an error (with a better message). Or we should not emit anything and rely on the error being caught later on (perhaps with a more informative error message). In either case, we should explain why there is an error here - because you can't have unbound type variables after bound ones. |
parser: change warning into an error on `T<A=B, C>` part of rust-lang#32214 This seems to be the obvious fix, and the error message is consistent with all the other parser errors ("expected x, found y").
The text was updated successfully, but these errors were encountered: