Skip to content

Commit 36363e5

Browse files
committed
Refine E0212 error message
1 parent e622543 commit 36363e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_typeck/src/collect.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ impl AstConv<'tcx> for ItemCtxt<'tcx> {
359359
self.tcx().sess,
360360
span,
361361
E0212,
362-
"cannot extract an associated type from a higher-ranked trait bound \
363-
in this context"
362+
"cannot use the associated type of a trait \
363+
with uninferred generic parameters"
364364
);
365365

366366
match self.node() {

0 commit comments

Comments
 (0)