rustc: Suppress more derived errors

This commit is contained in:
Tim Chevalier 2013-01-20 15:13:29 -08:00
parent 0a8c039135
commit bc5dd2f557

View file

@ -1677,6 +1677,8 @@ fn check_expr_with_unifier(fcx: @fn_ctxt,
expr.span,
~"attempted to take value of method \
(try writing an anonymous function)");
// Add error type for the result
fcx.write_ty(expr.id, ty::mk_err(tcx));
}
}
None => {