1 error[E0700]: hidden type for `impl PlusOne` captures lifetime that does not appear in bounds
2 --> $DIR/imply_bounds_from_bounds_param.rs:24:5
4 LL | fn test<'a>(y: &'a mut i32) -> impl PlusOne {
5 | -- hidden type `<&'a mut i32 as Callable>::Output` captures the lifetime `'a` as defined here
6 LL | <&'a mut i32 as Callable>::call(y)
7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 help: to declare that `impl PlusOne` captures `'a`, you can add an explicit `'a` lifetime bound
11 LL | fn test<'a>(y: &'a mut i32) -> impl PlusOne + 'a {
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0700`.