Skip to content

Commit

Permalink
Add clarifying comment to test.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ou-se committed Feb 21, 2024
1 parent e6d3e0c commit f4caa83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/ui/lifetimes/temporary-lifetime-extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}");
Expand Down

0 comments on commit f4caa83

Please sign in to comment.