1 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2 --> $DIR/ordinary-bounds-unrelated.rs:18:74
4 LL | fn upper_bounds<'a, 'b, 'c, 'd, 'e>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'d, 'e>
7 note: hidden type `Ordinary<'_>` captures lifetime smaller than the function body
8 --> $DIR/ordinary-bounds-unrelated.rs:18:74
10 LL | fn upper_bounds<'a, 'b, 'c, 'd, 'e>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'d, 'e>
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0700`.