Type alias impl trait doesn’t properly enforce outlives relations. #84657
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
A-traits
Area: Trait system
A-typesystem
Area: The type system
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
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.
(playground)
I would’ve expected rustc to complain about the
_defining_use
not matching thetype Converter<'a, 'b>
with a suggestion to turn it intotype Converter<'a: 'b, 'a>
.@rustbot modify labels: A-typesystem, A-lifetimes, A-traits, A-impl-trait, F-type_alias_impl_trait, T-compiler, requires-nightly
and someone please add “I-unsound 💥” (and/or tell me if there is a way to do it myself).
The text was updated successfully, but these errors were encountered: