mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
15 lines
605 B
Plaintext
15 lines
605 B
Plaintext
error[E0700]: hidden type for `impl Trait<'a, 'b>` captures lifetime that does not appear in bounds
|
|
--> $DIR/ordinary-bounds-unsuited.rs:31:33
|
|
|
|
|
LL | fn upper_bounds<'a, 'b>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'a, 'b>
|
|
| ------------------ opaque type defined here
|
|
...
|
|
LL | if condition() { a } else { b }
|
|
| ^
|
|
|
|
|
= note: hidden type `Ordinary<'_>` captures lifetime `'_`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0700`.
|