Skip to content
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

fix: Consider types of const generics #11920

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Conversation

HKalbasi
Copy link
Member

@HKalbasi HKalbasi commented Apr 7, 2022

fix #11913

We should emit type_mismatch in const generics, probably after #7434. Currently they will lead to a misleading, time of use type error (like the added test).

@flodiebold
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 7, 2022

@bors bors bot merged commit b8ed4a3 into rust-lang:master Apr 7, 2022
@lnicola lnicola changed the title Consider types of const generics fix: Consider types of const generics Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

spurious type-mismatch error in code with generics with value parameters
2 participants