-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Prevent main from having a where clause. #50782
Conversation
You should add this check for rust/src/librustc_typeck/lib.rs Lines 251 to 258 in 27acb9b
|
So, this cannot affect libraries, so the potential impact is pretty limited. I suspect we can get by without a crater run. |
✌️ @matthewjasper can now approve this pull request |
dc6ae8b
to
7706649
Compare
src/librustc_typeck/diagnostics.rs
Outdated
Erroneous code example: | ||
|
||
```compile_fail,E0646 | ||
fn start() where i32: Copy { // error: start function is not allowed to have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your tests look correct, but this isn't a correct example of a start function.
7706649
to
27acb9b
Compare
@bors r+ |
📌 Commit 218a81b has been approved by |
@bors p=4 |
Prevent main from having a where clause. Closes #50714 Should this have a crater run? cc #48557, #48214 r? @nikomatsakis
☀️ Test successful - status-appveyor, status-travis |
Closes #50714
Should this have a crater run?
cc #48557, #48214
r? @nikomatsakis