RPITIT with generic const constraint requires implied lifetime bounds to be explicitly specified in impls #138411
Labels
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
requires-incomplete-features
This issue requires the use of incomplete features.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: The code compiles without errors
Instead, this happened:
The
[(); N-1]:
bound in the trait definition is highlighted as an error complaining thatT
does not outlive'a
, and suggests addingT: 'a
to the impl block.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: