summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/generic-unique.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generics/generic-unique.rs')
-rw-r--r--src/test/ui/generics/generic-unique.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/generics/generic-unique.rs b/src/test/ui/generics/generic-unique.rs
deleted file mode 100644
index 2f34712ec..000000000
--- a/src/test/ui/generics/generic-unique.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// run-pass
-#![allow(dead_code)]
-
-struct Triple<T> { x: T, y: T, z: T }
-
-fn box_it<T>(x: Triple<T>) -> Box<Triple<T>> { return Box::new(x); }
-
-pub fn main() {
- let x: Box<Triple<isize>> = box_it::<isize>(Triple{x: 1, y: 2, z: 3});
- assert_eq!(x.y, 2);
-}