nested rpit allows capturing illegal lifetimes #105251
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
P-high
High priority
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
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.
The following compiles on the current nightly (1.67.0-nightly (2022-12-03 2341517)) although it shouldn't:
It is correctly rejected by the current beta: 1.66.0-beta.2 (2022-11-20 0040709).
This is most likely #103491 (I haven't bisected though!). Cc @cjgillot.
@rustbot label C-bug T-compiler I-unsound regression-from-stable-to-nightly A-impl-trait
The text was updated successfully, but these errors were encountered: