From 07e2dd7d96a7fb235ac8a4a56f5c436e381f573d Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Fri, 13 Jul 2018 16:55:15 +0200 Subject: Don't accidentally promote union access in MIR --- src/test/ui/const-eval/union_promotion.nll.stderr | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/test/ui/const-eval/union_promotion.nll.stderr (limited to 'src/test/ui') diff --git a/src/test/ui/const-eval/union_promotion.nll.stderr b/src/test/ui/const-eval/union_promotion.nll.stderr deleted file mode 100644 index ea95a8b42a4..00000000000 --- a/src/test/ui/const-eval/union_promotion.nll.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error: internal compiler error: unexpected region for local data ReStatic - --> $DIR/union_promotion.rs:19:29 - | -LL | let x: &'static bool = &unsafe { //~ borrowed value does not live long enough - | _____________________________^ -LL | | Foo { a: &1 }.b == Foo { a: &2 }.b -LL | | }; - | |_____^ - -error: aborting due to previous error - -- cgit 1.4.1-3-g733a5