summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-prop-ice3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-prop-ice3.rs')
-rw-r--r--src/test/ui/consts/const-prop-ice3.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/consts/const-prop-ice3.rs b/src/test/ui/consts/const-prop-ice3.rs
new file mode 100644
index 000000000..8ab011661
--- /dev/null
+++ b/src/test/ui/consts/const-prop-ice3.rs
@@ -0,0 +1,7 @@
+// run-pass (ensure that const-prop is run)
+
+struct A<T: ?Sized>(T);
+
+fn main() {
+ let _x = &(&A([2, 3]) as &A<[i32]>).0 as *const [i32] as *const i32;
+}