diff options
Diffstat (limited to 'tests/ui/consts/dangling-alloc-id-ice.rs')
| -rw-r--r-- | tests/ui/consts/dangling-alloc-id-ice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/consts/dangling-alloc-id-ice.rs b/tests/ui/consts/dangling-alloc-id-ice.rs index 8e9493c8d28..b77c5971b2b 100644 --- a/tests/ui/consts/dangling-alloc-id-ice.rs +++ b/tests/ui/consts/dangling-alloc-id-ice.rs @@ -10,7 +10,7 @@ union Foo<'a> { } const FOO: &() = { - //~^ ERROR it is undefined behavior to use this value + //~^ ERROR dangling reference let y = (); unsafe { Foo { y: &y }.long_live_the_unit } }; |
