summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs')
-rw-r--r--src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs b/src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs
deleted file mode 100644
index 31a48b4ad..000000000
--- a/src/test/ui/regions/regions-infer-reborrow-ref-mut-recurse.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// run-pass
-#![allow(dead_code)]
-// Test an edge case in region inference: the lifetime of the borrow
-// of `*x` must be extended to at least 'a.
-
-// pretty-expanded FIXME #23616
-
-fn foo<'a,'b>(x: &'a &'b mut isize) -> &'a isize {
- let y = &*x; // should be inferred to have type &'a &'b mut isize...
-
- // ...because if we inferred, say, &'x &'b mut isize where 'x <= 'a,
- // this reborrow would be illegal:
- &**y
-}
-
-pub fn main() {
- /* Just want to know that it compiles. */
-}