summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/raw_pointer_promoted.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/raw_pointer_promoted.rs')
-rw-r--r--src/test/ui/consts/raw_pointer_promoted.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/consts/raw_pointer_promoted.rs b/src/test/ui/consts/raw_pointer_promoted.rs
new file mode 100644
index 000000000..4c62ad444
--- /dev/null
+++ b/src/test/ui/consts/raw_pointer_promoted.rs
@@ -0,0 +1,5 @@
+// check-pass
+
+pub const FOO: &'static *const i32 = &(&0 as _);
+
+fn main() {}