]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/equality-bound.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / equality-bound.stderr
CommitLineData
a2a8927a
XL
1error: equality constraints are not yet supported in `where` clauses
2 --> $DIR/equality-bound.rs:1:51
3 |
4LL | fn sum<I: Iterator<Item = ()>>(i: I) -> i32 where I::Item = i32 {
5 | ^^^^^^^^^^^^^ not supported
6 |
7 = note: see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information
8help: if `Iterator::Item` is an associated type you're trying to set, use the associated type binding syntax
9 |
10LL - fn sum<I: Iterator<Item = ()>>(i: I) -> i32 where I::Item = i32 {
11LL + fn sum<I: Iterator<Item = (), Item = i32>>(i: I) -> i32 where {
923072b8 12 |
a2a8927a
XL
13
14error: equality constraints are not yet supported in `where` clauses
15 --> $DIR/equality-bound.rs:5:41
16 |
17LL | fn sum2<I: Iterator>(i: I) -> i32 where I::Item = i32 {
18 | ^^^^^^^^^^^^^ not supported
19 |
20 = note: see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information
21help: if `Iterator::Item` is an associated type you're trying to set, use the associated type binding syntax
22 |
23LL - fn sum2<I: Iterator>(i: I) -> i32 where I::Item = i32 {
24LL + fn sum2<I: Iterator<Item = i32>>(i: I) -> i32 where {
923072b8 25 |
a2a8927a
XL
26
27error: equality constraints are not yet supported in `where` clauses
28 --> $DIR/equality-bound.rs:9:41
29 |
30LL | fn sum3<J: Iterator>(i: J) -> i32 where I::Item = i32 {
31 | ^^^^^^^^^^^^^ not supported
32 |
33 = note: see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information
34
35error[E0433]: failed to resolve: use of undeclared type `I`
36 --> $DIR/equality-bound.rs:9:41
37 |
38LL | fn sum3<J: Iterator>(i: J) -> i32 where I::Item = i32 {
39 | ^ use of undeclared type `I`
40
41error: aborting due to 4 previous errors
42
43For more information about this error, try `rustc --explain E0433`.