about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-11-15 15:22:38 +0100
committerRalf Jung <post@ralfj.de>2020-12-09 09:46:27 +0100
commitd057a93e6f43eb410b9c348a8fe590bdc4452ae6 (patch)
treea655865ec9f9e040fd53148c532a281aca027a32 /src
parent99a44ed086978339d531aa40f84efdaa1bacbb45 (diff)
remove a test that does not work any more
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/issues/issue-49955-2.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/test/ui/issues/issue-49955-2.rs b/src/test/ui/issues/issue-49955-2.rs
deleted file mode 100644
index 267ed746322..00000000000
--- a/src/test/ui/issues/issue-49955-2.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// run-pass
-// compile-flags: -Z borrowck=mir
-
-use std::cell::Cell;
-
-const FIVE: Cell<i32> = Cell::new(5);
-
-#[inline(never)]
-fn tuple_field() -> &'static u32 {
-    // This test is MIR-borrowck-only because the old borrowck
-    // doesn't agree that borrows of "frozen" (i.e., without any
-    // interior mutability) fields of non-frozen temporaries,
-    // should be promoted, while MIR promotion does promote them.
-    &(FIVE, 42).1
-}
-
-fn main() {
-    assert_eq!(tuple_field().to_string(), "42");
-}