2019-01-27 11:03:21 +00:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 13:13:25 -04:00
|
|
|
--> $DIR/regions-infer-paramd-indirect.rs:22:9
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
|
LL | impl<'a> SetF<'a> for C<'a> {
|
|
|
|
| -- lifetime `'a` defined here
|
|
|
|
...
|
|
|
|
LL | fn set_f_bad(&mut self, b: Box<B>) {
|
2020-09-02 10:40:56 +03:00
|
|
|
| - has type `Box<Box<&'1 isize>>`
|
2019-01-27 11:03:21 +00:00
|
|
|
LL | self.f = b;
|
|
|
|
| ^^^^^^ assignment requires that `'1` must outlive `'a`
|
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-01-27 11:03:21 +00:00
|
|
|
|