Refine E0212 error message

This commit is contained in:
Daiki Ihara 2020-12-04 21:18:01 +09:00
parent e6225434ff
commit 36363e535a

View File

@ -359,8 +359,8 @@ impl AstConv<'tcx> for ItemCtxt<'tcx> {
self.tcx().sess,
span,
E0212,
"cannot extract an associated type from a higher-ranked trait bound \
in this context"
"cannot use the associated type of a trait \
with uninferred generic parameters"
);
match self.node() {