summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-region-ptrs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-region-ptrs.rs')
-rw-r--r--src/test/ui/consts/const-region-ptrs.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/consts/const-region-ptrs.rs b/src/test/ui/consts/const-region-ptrs.rs
deleted file mode 100644
index 9b94a2b11..000000000
--- a/src/test/ui/consts/const-region-ptrs.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// run-pass
-#![allow(non_upper_case_globals)]
-
-struct Pair<'a> { a: isize, b: &'a isize }
-
-const x: &'static isize = &10;
-
-const y: &'static Pair<'static> = &Pair {a: 15, b: x};
-
-pub fn main() {
- println!("x = {}", *x);
- println!("y = {{a: {}, b: {}}}", y.a, *(y.b));
- assert_eq!(*x, 10);
- assert_eq!(*(y.b), 10);
-}