]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-both-are-structs-2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-both-are-structs-2.stderr
CommitLineData
923072b8
FG
1error: lifetime may not live long enough
2 --> $DIR/ex3-both-anon-regions-both-are-structs-2.rs:7:5
3b2f2976 3 |
0531ce1d 4LL | fn foo(mut x: Ref, y: Ref) {
923072b8
FG
5 | ----- - has type `Ref<'_, '1>`
6 | |
7 | has type `Ref<'_, '2>`
532ac7d7 8LL | x.b = y.b;
923072b8 9 | ^^^^^^^^^ assignment requires that `'1` must outlive `'2`
3b2f2976
XL
10
11error: aborting due to previous error
12