fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
851 B28 linesraw
1error[E0308]: mismatched types
2  --> $DIR/regions-infer-paramd-indirect.rs:22:18
3   |
4LL |         self.f = b;
5   |                  ^ lifetime mismatch
6   |
7   = note: expected struct `std::boxed::Box<std::boxed::Box<&'a isize>>`
8              found struct `std::boxed::Box<std::boxed::Box<&isize>>`
9note: the anonymous lifetime #2 defined on the method body at 21:5...
10  --> $DIR/regions-infer-paramd-indirect.rs:21:5
11   |
12LL | /     fn set_f_bad(&mut self, b: Box<B>) {
13LL | |         self.f = b;
14LL | |
15LL | |
16LL | |
17LL | |
18LL | |     }
19   | |_____^
20note: ...does not necessarily outlive the lifetime `'a` as defined on the impl at 16:6
21  --> $DIR/regions-infer-paramd-indirect.rs:16:6
22   |
23LL | impl<'a> SetF<'a> for C<'a> {
24   |      ^^
25
26error: aborting due to previous error
27
28For more information about this error, try `rustc --explain E0308`.