-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
const_trait_impls cannot be utilized with a trait_alias #106405
Copy link
Copy link
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`F-trait_alias`#![feature(trait_alias)]``#![feature(trait_alias)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.fixed-by-effectsThe effect system based scheme for const fns resolves this.The effect system based scheme for const fns resolves this.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-const_trait_impl`#![feature(const_trait_impl)]``#![feature(const_trait_impl)]`F-trait_alias`#![feature(trait_alias)]``#![feature(trait_alias)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.fixed-by-effectsThe effect system based scheme for const fns resolves this.The effect system based scheme for const fns resolves this.
Type
Fields
Give feedbackNo fields configured for issues without a type.
const_trait_implcannot utilize const traits when satisfying const bounds using a trait aliastrait_aliasLink to Playground
There is not way to specify const-ness using trait bounds. The compile error does specify adding a #[const_trait] attribute, but this is not possible for trait aliases;
rustc --version --verbose: