Coroutine resume type is not borrow-checked #119564
Labels
A-borrow-checker
Area: The borrow checker
A-coroutines
Area: Coroutines
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
F-coroutines
`#![feature(coroutines)]`
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-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected to see compilation fail, since
Invariant<'a>
is not a subtype ofInvariant<'b>
.Instead, compilation succeeded ❗
The text was updated successfully, but these errors were encountered: