Skip to content

Commit

Permalink
Add missing backtick
Browse files Browse the repository at this point in the history
  • Loading branch information
chengehe authored Nov 1, 2024
1 parent 9fa9ef3 commit 5342eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ui/consts/promote-not.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub const fn promote_cal(b: bool) -> i32 {
13
}

// We do not promote union field accesses in `fn.
// We do not promote union field accesses in `fn`.
union U { x: i32, y: i32 }
pub const fn promote_union() {
let _x: &'static i32 = &unsafe { U { x: 0 }.x }; //~ ERROR temporary value dropped while borrowed
Expand Down

0 comments on commit 5342eb0

Please sign in to comment.