mirror of
https://github.com/rust-lang/rust
synced 2024-10-14 12:33:57 +00:00
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 a new issue