Tell typeck that user unops are by value

This commit is contained in:
Jorge Aparicio 2014-12-15 16:11:34 -05:00
parent 7efaf3fa34
commit c5b6d9412d

View File

@ -3363,7 +3363,7 @@ fn check_expr_with_unifier<'a, 'tcx, F>(fcx: &FnCtxt<'a, 'tcx>,
format!("cannot apply unary operator `{}` to type `{}`",
op_str, actual)
}, rhs_t, None);
}, AutorefArgs::Yes)
}, AutorefArgs::No)
}
// Check field access expressions