Skip to content

Commit ae74652

Browse files
committed
Auto merge of #26057 - audebert:master, r=alexcrichton
The constraint referenced here is: ```rust fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { /* */ } ```
2 parents 72b03e5 + 27dd0dd commit ae74652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ impl Trait for i8 { type AssociatedType = &'static str; }
559559
560560
foo(3_i8);
561561
// Here, we invoke `foo` with an `i8`, which does not satisfy
562-
// the constraint `<i8 as Trait>::AssociatedType=32`, and
562+
// the constraint `<i8 as Trait>::AssociatedType=u32`, and
563563
// therefore the type-checker complains with this error code.
564564
```
565565

0 commit comments

Comments
 (0)