Static lifetimes checking regression in rustc 1.41.0 #69114
Labels
A-borrow-checker
Area: The borrow checker
A-lifetimes
Area: Lifetimes / regions
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-stable
Performance or correctness regression from one stable version to another.
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:
Instead, happens undefined behavior. Program successfully compiles in the Rust
stable 1.41.0
but fails to compile instable 1.40.0
(thats what I want).The text was updated successfully, but these errors were encountered: