Skip to content

Commit f4caa83

Browse files
committed
Add clarifying comment to test.
1 parent e6d3e0c commit f4caa83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/lifetimes/temporary-lifetime-extension.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fn main() {
2626
}
2727
};
2828
let h = match temp() {
29+
// The {} moves the value, making a new temporary.
2930
owned_non_temporary => &{ owned_non_temporary },
3031
};
3132
println!("{a:?} {b:?} {c:?} {d:?} {e:?} {f:?} {g:?} {h:?}");

0 commit comments

Comments
 (0)