graydon/rust — Issue #1460: "error: internal compiler error ty_fn_args() called on non-fn type"
Author: jruderman
Created: 2012-01-08 06:48:52+00:00
State: open

fn main() {
{|i| if i == 1 { }};
}

Result:

error: internal compiler error ty_fn_args() called on non-fn type

Expected:

error: expressions with block type can only appear in callee or (by-ref) argument position