Extend temporary lifetime extension test.

Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
This commit is contained in:
Mara Bos 2024-02-20 16:22:04 +01:00 committed by GitHub
parent bec765e507
commit e6d3e0cf99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,5 +25,8 @@ fn main() {
&temp()
}
};
println!("{a:?} {b:?} {c:?} {d:?} {e:?} {f:?} {g:?}");
let h = match temp() {
owned_non_temporary => &{ owned_non_temporary },
};
println!("{a:?} {b:?} {c:?} {d:?} {e:?} {f:?} {g:?} {h:?}");
}