Unconstrained lifetimes allowed with member_constraints/type_alias_impl_trait #74761
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
F-member_constraints
`#[feature(member_constraints)]`
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
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.
Code
Playground
Meta
rustc --version --verbose
:Error output
I had first seen:
Removing the second lifetime (
impl<'a> A for () {
) gives the correct error,Additionally, disabling either
type_alias_impl_trait
ormember_constraints
still panics (and prompts to enable those features), except in stable where it prompts to enable the features, but does not panic.Perhaps similar to #57200
Backtrace
The text was updated successfully, but these errors were encountered: