summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-err4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-err4.rs')
-rw-r--r--src/test/ui/consts/const-err4.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-err4.rs b/src/test/ui/consts/const-err4.rs
index f0625faa8..107dc3f82 100644
--- a/src/test/ui/consts/const-err4.rs
+++ b/src/test/ui/consts/const-err4.rs
@@ -7,7 +7,8 @@ union Foo {
enum Bar {
Boo = [unsafe { Foo { b: () }.a }; 4][3],
- //~^ ERROR it is undefined behavior to use this value
+ //~^ ERROR evaluation of constant value failed
+ //~| uninitialized
}
fn main() {