fork/rust

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

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

1.40.0
664 B20 linesraw
1error[E0478]: lifetime bound not satisfied
2  --> $DIR/issue-28848.rs:10:5
3   |
4LL |     Foo::<'a, 'b>::xmute(u)
5   |     ^^^^^^^^^^^^^^^^^^^^
6   |
7note: lifetime parameter instantiated with the lifetime `'b` as defined on the function body at 9:16
8  --> $DIR/issue-28848.rs:9:16
9   |
10LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
11   |                ^^
12note: but lifetime parameter must outlive the lifetime `'a` as defined on the function body at 9:12
13  --> $DIR/issue-28848.rs:9:12
14   |
15LL | pub fn foo<'a, 'b>(u: &'b ()) -> &'a () {
16   |            ^^
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0478`.