fork/rust

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

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

1.40.0
478 B32 linesraw
1error: rustc_outlives
2  --> $DIR/enum.rs:7:1
3   |
4LL | / enum Foo<'a, T> {
5LL | |     One(Bar<'a, T>)
6LL | | }
7   | |_^
8   |
9   = note: T : 'a
10
11error: rustc_outlives
12  --> $DIR/enum.rs:13:1
13   |
14LL | / struct Bar<'b, U> {
15LL | |     field2: &'b U
16LL | | }
17   | |_^
18   |
19   = note: U : 'b
20
21error: rustc_outlives
22  --> $DIR/enum.rs:19:1
23   |
24LL | / enum Ying<'c, K> {
25LL | |     One(&'c Yang<K>)
26LL | | }
27   | |_^
28   |
29   = note: K : 'c
30
31error: aborting due to 3 previous errors
32