Skip to content

Commit

Permalink
Auto merge of #26057 - audebert:master, r=alexcrichton
Browse files Browse the repository at this point in the history
The constraint referenced here is:

```rust
fn foo<T>(t: T) where T: Trait<AssociatedType=u32> { /* */ }
```
  • Loading branch information
bors committed Jun 7, 2015
2 parents 72b03e5 + 27dd0dd commit ae74652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ impl Trait for i8 { type AssociatedType = &'static str; }
foo(3_i8);
// Here, we invoke `foo` with an `i8`, which does not satisfy
// the constraint `<i8 as Trait>::AssociatedType=32`, and
// the constraint `<i8 as Trait>::AssociatedType=u32`, and
// therefore the type-checker complains with this error code.
```
Expand Down

0 comments on commit ae74652

Please sign in to comment.