Port the tests to the decl foo<T> syntax.
This commit is contained in:
parent
4abc471390
commit
3520499544
86 changed files with 161 additions and 161 deletions
|
@ -4,9 +4,9 @@
|
|||
// -*- rust -*-
|
||||
|
||||
// Tests for standalone blocks as expressions with dynamic type sizes
|
||||
type compare[T] = fn(&T, &T) -> bool ;
|
||||
type compare<T> = fn(&T, &T) -> bool ;
|
||||
|
||||
fn test_generic[T](expected: &T, eq: &compare<T>) {
|
||||
fn test_generic<T>(expected: &T, eq: &compare<T>) {
|
||||
let actual: T = { expected };
|
||||
assert (eq(expected, actual));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue