about summary refs log tree commit diff
path: root/tests/ui/static/issue-34194.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/static/issue-34194.rs')
-rw-r--r--tests/ui/static/issue-34194.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/static/issue-34194.rs b/tests/ui/static/issue-34194.rs
new file mode 100644
index 00000000000..6dce556e9e3
--- /dev/null
+++ b/tests/ui/static/issue-34194.rs
@@ -0,0 +1,11 @@
+// build-pass
+#![allow(dead_code)]
+
+struct A {
+    a: &'static (),
+}
+
+static B: &'static A = &A { a: &() };
+static C: &'static A = &B;
+
+fn main() {}