diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-13 16:55:15 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-08-07 14:41:33 +0200 |
| commit | 07e2dd7d96a7fb235ac8a4a56f5c436e381f573d (patch) | |
| tree | 45623a37a68afc491c09aab95c23c0633c03df78 /src/test | |
| parent | c0aedc0b6a64c919bb618b7c7ffe2622338302dd (diff) | |
| download | rust-07e2dd7d96a7fb235ac8a4a56f5c436e381f573d.tar.gz rust-07e2dd7d96a7fb235ac8a4a56f5c436e381f573d.zip | |
Don't accidentally promote union access in MIR
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/const-eval/union_promotion.nll.stderr | 11 |
1 files changed, 0 insertions, 11 deletions
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 - |
