summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-10396.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/issues/issue-10396.rs')
-rw-r--r--src/test/ui/issues/issue-10396.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-10396.rs b/src/test/ui/issues/issue-10396.rs
new file mode 100644
index 000000000..d16ea3dc3
--- /dev/null
+++ b/src/test/ui/issues/issue-10396.rs
@@ -0,0 +1,14 @@
+// check-pass
+#![allow(dead_code)]
+#[derive(Debug)]
+enum Foo<'s> {
+ V(&'s str)
+}
+
+fn f(arr: &[&Foo]) {
+ for &f in arr {
+ println!("{:?}", f);
+ }
+}
+
+fn main() {}