Skip to content

Allow specialized const trait impls. #95292

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

Merged
merged 6 commits into from
Nov 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Oops, bless this test.
  • Loading branch information
BGR360 committed Nov 11, 2022
commit 94f67e667be3efd1845bb95fcd25fcce11cf983c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: cannot specialize on const impl with non-const impl
LL | impl<T: Default + Sup> A for T {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: missing `~const` qualifier
error: missing `~const` qualifier for specialization
--> $DIR/specializing-constness.rs:20:9
|
LL | impl<T: Default + Sup> A for T {
Expand Down