Rollup merge of #132448 - chengehe:master, r=Noratrieb

Add missing backtick
This commit is contained in:
Guillaume Gomez 2024-11-02 03:08:54 +08:00 committed by GitHub
commit e9e7aa8487
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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