rust/tests/ui/regions/regions-infer-paramd-indirect.stderr
Nilstrieb 41e8d152dc Show number in error message even for one error
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00

14 lines
421 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 `Box<Box<&'1 isize>>`
LL | self.f = b;
| ^^^^^^ assignment requires that `'1` must outlive `'a`
error: aborting due to 1 previous error