summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs')
-rw-r--r--tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs b/tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs
deleted file mode 100644
index a4a8a5ac6..000000000
--- a/tests/ui/higher-rank-trait-bounds/hrtb-unboxed-closure-trait.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// run-pass
-// Test HRTB used with the `Fn` trait.
-
-fn foo<F:Fn(&isize)>(f: F) {
- let x = 22;
- f(&x);
-}
-
-fn main() {
- foo(|x: &isize| println!("{}", *x));
-}