We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fa9ef3 commit 5342eb0Copy full SHA for 5342eb0
tests/ui/consts/promote-not.rs
@@ -23,7 +23,7 @@ pub const fn promote_cal(b: bool) -> i32 {
23
13
24
}
25
26
-// We do not promote union field accesses in `fn.
+// We do not promote union field accesses in `fn`.
27
union U { x: i32, y: i32 }
28
pub const fn promote_union() {
29
let _x: &'static i32 = &unsafe { U { x: 0 }.x }; //~ ERROR temporary value dropped while borrowed
0 commit comments