rust/tests/ui/regions/regions-infer-paramd-indirect.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
421 B
Plaintext
Raw Normal View History

error: lifetime may not live long enough
2022-04-01 17:13:25 +00:00
--> $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 `Box<Box<&'1 isize>>`
LL | self.f = b;
| ^^^^^^ assignment requires that `'1` must outlive `'a`
error: aborting due to 1 previous error