rustc: Suppress more derived errors
This commit is contained in:
parent
0a8c039135
commit
bc5dd2f557
1 changed files with 2 additions and 0 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue