1 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
2 --> $DIR/region-escape-via-bound.rs:18:5
5 | -- hidden type `Cell<&'x u32>` captures the lifetime `'x` as defined here
10 help: to declare that the `impl Trait` captures `'x`, you can add an explicit `'x` lifetime bound
12 LL | fn foo(x: Cell<&'x u32>) -> impl Trait<'y> + 'x
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0700`.