Rustc panics at free_region_relations.rs:93:9: "can't find an upper bound!?" #139004
Labels
A-borrow-checker
Area: The borrow checker
A-closures
Area: Closures (`|…| { … }`)
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-types
Relevant to the types team, which will review and decide on the PR/issue.
The compiler panics for the following code.
I've tried to minimize it, but this is how far I could get:
The rustc panicked with
Meta
The code is available in rust playground:
link
and the error is present for both stable, beta, nightly and both in debug and release builds:
Version Info:

The text was updated successfully, but these errors were encountered: