Test for issue 1896 (which appears to be fixed)

This commit is contained in:
Tim Chevalier 2012-06-21 13:14:50 -07:00
parent 453e29cc39
commit 2a53640aa1
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
type t<T> = { f: fn() -> T };
fn f<T>(_x: t<T>) {}
fn main() {
let x: t<()> = { f: { || () } }; //! ERROR expressions with stack closure
f(x);
}