late-bound lifetimes on type-alias-impl-trait can be unsound #97104
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
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.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Playground.
Prior to #96903, these types were rejected with this error:
Currently, they're accepted.
Based on the assumption that generic parameters on opaque type are not constrained (see Niko's comment #95474 (comment)), I believe the previous behavior is correct.
CC: @oli-obk
@rustbot label F-type_alias_impl_trait A-impl-trait T-compiler A-lifetimes
The text was updated successfully, but these errors were encountered: