diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index ad63806df6696d1798feb275c3b20314abee5f15..5a08880e2691e90214bacd415495ba77d812d247 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -3363,7 +3363,7 @@ fn check_user_unop<'a, 'tcx>(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