librustc: Remove remaining uses of &fn() in favor of ||.

This commit is contained in:
Patrick Walton 2013-11-19 17:36:32 -08:00
parent 406813957b
commit 9e610573ba
72 changed files with 163 additions and 153 deletions

View file

@ -12,7 +12,7 @@
// xfail-fast
// Tests for standalone blocks as expressions with dynamic type sizes
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() };