summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/autobind.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generics/autobind.rs')
-rw-r--r--src/test/ui/generics/autobind.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/generics/autobind.rs b/src/test/ui/generics/autobind.rs
deleted file mode 100644
index 70606a2a2..000000000
--- a/src/test/ui/generics/autobind.rs
+++ /dev/null
@@ -1,12 +0,0 @@
-// run-pass
-
-fn f<T>(x: Vec<T>) -> T { return x.into_iter().next().unwrap(); }
-
-fn g<F>(act: F) -> isize where F: FnOnce(Vec<isize>) -> isize { return act(vec![1, 2, 3]); }
-
-pub fn main() {
- assert_eq!(g(f), 1);
- let f1 = f;
- assert_eq!(f1(vec!["x".to_string(), "y".to_string(), "z".to_string()]),
- "x".to_string());
-}