Open
Description
Here is simplified version of my code from actual production code base:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=99a751acd113949b2a77fa251e33f955 (rustc 1.68.2)
The code doesn't compile, but the code is correct, and it should compile. Yes, I can do the same task easier, but the code is still correct.
-Zpolonius
doesn't change anything, i. e. this bug is not fixed by Polonius.
@rustbot label +A-lifetimes +T-compiler +A-borrow-checker +NLL-polonius +A-NLL