Use PredicateObligations instead of Predicates

Keep more information about trait binding failures.
This commit is contained in:
Esteban Küber 2020-03-03 15:07:04 -08:00
parent 485c5fb6e1
commit bd7ea5441e
90 changed files with 280 additions and 141 deletions

View file

@ -2,7 +2,7 @@ error[E0277]: `u8` is not an iterator
--> $DIR/bound.rs:2:10
|
LL | struct S<I: Iterator>(I);
| ------------------------- required by `S`
| - -------- required by this bound in `S`
LL | struct T(S<u8>);
| ^^^^^ `u8` is not an iterator
|