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
404 B12 linesraw
1error: lifetime may not live long enough
2  --> $DIR/object-lifetime-default-from-rptr-struct-error.rs:21:5
3   |
4LL | fn c<'a>(t: &'a MyBox<dyn Test+'a>, mut ss: SomeStruct<'a>) {
5   |      -- lifetime `'a` defined here
6LL |     ss.t = t;
7   |     ^^^^^^^^ assignment requires that `'a` must outlive `'static`
8   |
9   = help: consider replacing `'a` with `'static`
10
11error: aborting due to previous error
12