error: equality constraints are not yet supported in `where` clauses --> $DIR/equality-bound.rs:1:51 | LL | fn sum>(i: I) -> i32 where I::Item = i32 { | ^^^^^^^^^^^^^ not supported | = note: see issue #20041 for more information help: if `Iterator::Item` is an associated type you're trying to set, use the associated type binding syntax | LL - fn sum>(i: I) -> i32 where I::Item = i32 { LL + fn sum>(i: I) -> i32 where { | error: equality constraints are not yet supported in `where` clauses --> $DIR/equality-bound.rs:5:41 | LL | fn sum2(i: I) -> i32 where I::Item = i32 { | ^^^^^^^^^^^^^ not supported | = note: see issue #20041 for more information help: if `Iterator::Item` is an associated type you're trying to set, use the associated type binding syntax | LL - fn sum2(i: I) -> i32 where I::Item = i32 { LL + fn sum2>(i: I) -> i32 where { | error: equality constraints are not yet supported in `where` clauses --> $DIR/equality-bound.rs:9:41 | LL | fn sum3(i: J) -> i32 where I::Item = i32 { | ^^^^^^^^^^^^^ not supported | = note: see issue #20041 for more information error[E0433]: failed to resolve: use of undeclared type `I` --> $DIR/equality-bound.rs:9:41 | LL | fn sum3(i: J) -> i32 where I::Item = i32 { | ^ | | | use of undeclared type `I` | help: a type parameter with a similar name exists: `J` error: aborting due to 4 previous errors For more information about this error, try `rustc --explain E0433`.