about summary refs log tree commit diff
path: root/tests/ui/static/static-string-slice-9249.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/static/static-string-slice-9249.rs')
-rw-r--r--tests/ui/static/static-string-slice-9249.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/static/static-string-slice-9249.rs b/tests/ui/static/static-string-slice-9249.rs
new file mode 100644
index 00000000000..da099117bd4
--- /dev/null
+++ b/tests/ui/static/static-string-slice-9249.rs
@@ -0,0 +1,6 @@
+// https://github.com/rust-lang/rust/issues/9249
+//@ check-pass
+#![allow(dead_code)]
+
+static DATA:&'static [&'static str] = &["my string"];
+fn main() { }