We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[const_trait]
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I tried this code:
#![feature(const_trait_impl)] #[const_trait] pub trait Index { type Output; } #[const_trait] pub trait IndexMut: Index { fn foo(&mut self) -> <Self as Index>::Output; }
I expected to see this happen: compiles Instead, this happened: errors
latest nightly
The text was updated successfully, but these errors were encountered:
Rollup merge of rust-lang#100336 - fee1-dead-contrib:fix-wf-const-tra…
1a92d96
…it, r=oli-obk Fix two const_trait_impl issues r? `@oli-obk` Fixes rust-lang#100222. Fixes rust-lang#100543.
14c8a68
fee1-dead
Successfully merging a pull request may close this issue.
I tried this code:
I expected to see this happen: compiles
Instead, this happened: errors
Meta
latest nightly
The text was updated successfully, but these errors were encountered: