fix typo.

This commit is contained in:
Felix S. Klock II 2015-04-01 22:52:37 +02:00
parent a98e4713bf
commit 1c11748a54
1 changed files with 1 additions and 1 deletions

View File

@ -603,7 +603,7 @@ pub fn eval_const_expr_partial<'tcx>(tcx: &ty::ctxt<'tcx>,
e.span,
"unary negation of unsigned integers may be removed in the future");
}
const_uint(n) => try!(const_uint_checked_neg(n, e, expr_uint_type)),
try!(const_uint_checked_neg(i, e, expr_uint_type))
}
const_str(_) => signal!(e, NegateOnString),
const_bool(_) => signal!(e, NegateOnBoolean),