Converting "&'a &'b T" to "&'a T" in the presence of non-lexical lifetimes can be unsound #48803
Labels
A-borrow-checker
Area: The borrow checker
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
NLL-sound
Working towards the "invalid code does not compile" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following snippet should be rejected for allowing a value to be mutated while it is borrowed, but it is accepted on nightly when non-lexical lifetimes are enabled (playground):
The text was updated successfully, but these errors were encountered: