fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
560 B18 linesraw
1error[E0308]: mismatched types
2  --> $DIR/issue-50716.rs:14:9
3   |
4LL |     let _x = *s;
5   |         ^^ lifetime mismatch
6   |
7   = note: expected type `std::marker::Sized`
8              found type `std::marker::Sized`
9note: the lifetime `'a` as defined on the function body at 9:8...
10  --> $DIR/issue-50716.rs:9:8
11   |
12LL | fn foo<'a, T: 'static>(s: Box<<&'a T as A>::X>)
13   |        ^^
14   = note: ...does not necessarily outlive the static lifetime
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.