mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
14 lines
443 B
Plaintext
14 lines
443 B
Plaintext
|
error: lifetime may not live long enough
|
||
|
--> $DIR/regions-infer-paramd-indirect.rs:22:9
|
||
|
|
|
||
|
LL | impl<'a> SetF<'a> for C<'a> {
|
||
|
| -- lifetime `'a` defined here
|
||
|
...
|
||
|
LL | fn set_f_bad(&mut self, b: Box<B>) {
|
||
|
| - has type `std::boxed::Box<std::boxed::Box<&'1 isize>>`
|
||
|
LL | self.f = b;
|
||
|
| ^^^^^^ assignment requires that `'1` must outlive `'a`
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|