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
387 B13 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-50716.rs:14:14
3   |
4LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
5   |        -- lifetime `'a` defined here
6...
7LL |     let _x = *s;
8   |              ^^ proving this value is `Sized` requires that `'a` must outlive `'static`
9   |
10   = help: consider replacing `'a` with `'static`
11
12error: aborting due to previous error
13