about summary refs log tree commit diff
path: root/src/test/ui/const-eval/ub-enum-ptr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/const-eval/ub-enum-ptr.rs')
-rw-r--r--src/test/ui/const-eval/ub-enum-ptr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-eval/ub-enum-ptr.rs b/src/test/ui/const-eval/ub-enum-ptr.rs
index 66eda13a734..8538dd14afe 100644
--- a/src/test/ui/const-eval/ub-enum-ptr.rs
+++ b/src/test/ui/const-eval/ub-enum-ptr.rs
@@ -21,7 +21,7 @@ union Foo {
 
 // A pointer is guaranteed non-null
 const BAD_ENUM: Enum = unsafe { Foo { a: &1 }.b};
-//~^ ERROR this constant cannot be used
+//~^ ERROR this constant likely exhibits undefined behavior
 
 fn main() {
 }