Skip to content

Commit 1c11748

Browse files
committed
fix typo.
1 parent a98e471 commit 1c11748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/const_eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ pub fn eval_const_expr_partial<'tcx>(tcx: &ty::ctxt<'tcx>,
603603
e.span,
604604
"unary negation of unsigned integers may be removed in the future");
605605
}
606-
const_uint(n) => try!(const_uint_checked_neg(n, e, expr_uint_type)),
606+
try!(const_uint_checked_neg(i, e, expr_uint_type))
607607
}
608608
const_str(_) => signal!(e, NegateOnString),
609609
const_bool(_) => signal!(e, NegateOnBoolean),

0 commit comments

Comments
 (0)