fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
443 B13 linesraw
1error: lifetime may not live long enough
2  --> $DIR/regions-infer-paramd-indirect.rs:22:9
3   |
4LL | impl<'a> SetF<'a> for C<'a> {
5   |      -- lifetime `'a` defined here
6...
7LL |     fn set_f_bad(&mut self, b: Box<B>) {
8   |                             - has type `std::boxed::Box<std::boxed::Box<&'1 isize>>`
9LL |         self.f = b;
10   |         ^^^^^^ assignment requires that `'1` must outlive `'a`
11
12error: aborting due to previous error
13