about summary refs log tree commit diff
path: root/src/test/run-pass/expr-block-generic-box2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-block-generic-box2.rs')
-rw-r--r--src/test/run-pass/expr-block-generic-box2.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/expr-block-generic-box2.rs b/src/test/run-pass/expr-block-generic-box2.rs
index 562c3c1e523..04721c6bd94 100644
--- a/src/test/run-pass/expr-block-generic-box2.rs
+++ b/src/test/run-pass/expr-block-generic-box2.rs
@@ -12,7 +12,7 @@
 
 // xfail-fast
 
-type compare<'self, T> = &'self fn(T, T) -> bool;
+type compare<'self, T> = 'self |T, T| -> bool;
 
 fn test_generic<T:Clone>(expected: T, eq: compare<T>) {
     let actual: T = { expected.clone() };