提交 c5b6d941 编写于 作者: J Jorge Aparicio

Tell typeck that user unops are by value

上级 7efaf3fa
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册