1 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2 --> $DIR/ordinary-bounds-unsuited.rs:20:62
4 LL | fn upper_bounds<'a, 'b>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'a, 'b>
7 note: hidden type `Ordinary<'_>` captures the scope of call-site for function at 22:1
8 --> $DIR/ordinary-bounds-unsuited.rs:22:1
11 LL | | // We return a value:
15 LL | | if condition() { a } else { b }
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0700`.