Changed the error message to more clearly explain what is allowed

This commit is contained in:
Andrew 2019-06-09 13:16:13 +08:00
parent 817d2feb13
commit cf5df271b6

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 is required for an object type");
"at least one non-builtin trait, outside of &send, is required for an object type");
return tcx.types.err;
}