Extend temporary lifetime extension test.
Co-authored-by: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
This commit is contained in:
parent
bec765e507
commit
e6d3e0cf99
@ -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:?}");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user