From 5342eb05975ce7632fca97a83a0775c95c0d76f1 Mon Sep 17 00:00:00 2001 From: chengehe Date: Fri, 1 Nov 2024 16:53:36 +0800 Subject: [PATCH] Add missing backtick --- tests/ui/consts/promote-not.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ui/consts/promote-not.rs b/tests/ui/consts/promote-not.rs index 80912937f3158..207baccd6abb5 100644 --- a/tests/ui/consts/promote-not.rs +++ b/tests/ui/consts/promote-not.rs @@ -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