Account for late-bound depth when capturing all opaque lifetimes. Fixes https://github.com/rust-lang/rust/issues/132429 r? ````@compiler-errors````
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.