2022-07-26 06:19:58 +00:00
|
|
|
error[E0700]: hidden type for `impl Trait<'a, 'b>` captures lifetime that does not appear in bounds
|
2022-02-14 16:10:22 +00:00
|
|
|
--> $DIR/ordinary-bounds-unsuited.rs:31:33
|
2019-06-01 07:01:49 -04:00
|
|
|
|
|
|
|
|
LL | fn upper_bounds<'a, 'b>(a: Ordinary<'a>, b: Ordinary<'b>) -> impl Trait<'a, 'b>
|
2024-08-06 15:43:28 -04:00
|
|
|
| ------------------ opaque type defined here
|
2022-02-14 16:10:22 +00:00
|
|
|
...
|
|
|
|
LL | if condition() { a } else { b }
|
|
|
|
| ^
|
2019-06-01 07:01:49 -04:00
|
|
|
|
|
2024-08-06 15:43:28 -04:00
|
|
|
= note: hidden type `Ordinary<'_>` captures lifetime `'_`
|
2019-06-01 07:01:49 -04:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-06-01 07:01:49 -04:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0700`.
|