Port the tests to the decl foo<T> syntax.

This commit is contained in:
Erick Tryzelaar 2011-08-12 06:37:25 -07:00 committed by Graydon Hoare
parent 4abc471390
commit 3520499544
86 changed files with 161 additions and 161 deletions

View file

@ -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));
}