Default constant generic members are unconstrained
#111419
Labels
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
requires-nightly
This issue requires a nightly compiler in some way.
S-bug-has-test
Status: This bug is tracked inside the repo by a `known-bug` test.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When establishing default generic members dependent on the value of another generic, the compiler will hint towards the following:
After trying this the compiler seems to be fine but after running
cargo build
there is an internal compiler error.Code
In the case of this error, the following is the unconstrained generic:
If we replace
{ X + Y }
with a static integer, such as4
, then everything works fine. I'm assuming the error is originating from thegeneric_const_exprs
feature because of this.Meta
rustc --version --verbose
:Error output
Backtrace
Full Backtrace
The text was updated successfully, but these errors were encountered: