librustc: Remove remaining uses of &fn()
in favor of ||
.
This commit is contained in:
parent
406813957b
commit
9e610573ba
72 changed files with 163 additions and 153 deletions
|
@ -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() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue