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
454 B13 linesraw
1error[E0597]: `a` does not live long enough
2  --> $DIR/normalization.rs:9:31
3   |
4LL |     let b: <() as Foo>::Out = &a;
5   |            ----------------   ^^ borrowed value does not live long enough
6   |            |
7   |            type annotation requires that `a` is borrowed for `'static`
8LL | }
9   | - `a` dropped here while still borrowed
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0597`.