Skip to content

Commit 4e9615d

Browse files
author
Andrew
committed
changed the language of the error message to make it more clear
1 parent cf5df27 commit 4e9615d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/astconv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
10111011

10121012
if regular_traits.is_empty() && auto_traits.is_empty() {
10131013
span_err!(tcx.sess, span, E0224,
1014-
"at least one non-builtin trait, outside of &send, is required for an object type");
1014+
"at least one trait is required for an object type");
10151015
return tcx.types.err;
10161016
}
10171017

0 commit comments

Comments
 (0)