summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-5997.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-5997.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-5997.rs b/src/test/ui/issues/issue-5997.rs
new file mode 100644
index 000000000..145e3a792
--- /dev/null
+++ b/src/test/ui/issues/issue-5997.rs
@@ -0,0 +1,15 @@
+// run-pass
+#![allow(dead_code)]
+
+fn f<T>() -> bool {
+ enum E<T> { V(T) }
+
+ struct S<T>(T);
+
+ true
+}
+
+fn main() {
+ let b = f::<isize>();
+ assert!(b);
+}