const_trait_impl does not work for a dependent crate #84846
Labels
A-metadata
Area: Crate metadata
C-bug
Category: This is a bug.
F-const_trait_impl
`#![feature(const_trait_impl)]`
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this minimal example.
One crate
int
that declares anAdd
trait withconst_trait_impl
. It works fine and we can declare a constant using the add trait:A dependent crate that uses the above crate. I can use the add trait in the dependent crate, but I cannot declare a constant using the trait:
This error was given:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: