Test for issue 1896 (which appears to be fixed)
This commit is contained in:
parent
453e29cc39
commit
2a53640aa1
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue