changed the language of the error message to make it more clear

This commit is contained in:
Andrew 2019-06-09 14:31:39 +08:00
parent cf5df271b6
commit 4e9615d885

View file

@ -1011,7 +1011,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
if regular_traits.is_empty() && auto_traits.is_empty() {
span_err!(tcx.sess, span, E0224,
"at least one non-builtin trait, outside of &send, is required for an object type");
"at least one trait is required for an object type");
return tcx.types.err;
}