Add clarifying comment to test.
This commit is contained in:
parent
e6d3e0cf99
commit
f4caa832da
@ -26,6 +26,7 @@ fn main() {
|
||||
}
|
||||
};
|
||||
let h = match temp() {
|
||||
// The {} moves the value, making a new temporary.
|
||||
owned_non_temporary => &{ owned_non_temporary },
|
||||
};
|
||||
println!("{a:?} {b:?} {c:?} {d:?} {e:?} {f:?} {g:?} {h:?}");
|
||||
|
Loading…
Reference in New Issue
Block a user