11error[E0277]: `<L1 as Lam<&'a u8>>::App` doesn't implement `std::fmt::Debug`
2- --> $DIR/bad-bounds-on-assoc-in-trait.rs:32 :6
2+ --> $DIR/bad-bounds-on-assoc-in-trait.rs:31 :6
33 |
44LL | impl Case1 for S1 {
55 | ^^^^^ `<L1 as Lam<&'a u8>>::App` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
66 |
77 = help: the trait `for<'a> std::fmt::Debug` is not implemented for `<L1 as Lam<&'a u8>>::App`
88
99error[E0277]: `<<T as Case1>::C as std::iter::Iterator>::Item` is not an iterator
10- --> $DIR/bad-bounds-on-assoc-in-trait.rs:37 :1
10+ --> $DIR/bad-bounds-on-assoc-in-trait.rs:36 :1
1111 |
1212LL | fn assume_case1<T: Case1>() {
1313 | ^ - help: consider further restricting the associated type: `where <<T as Case1>::C as std::iter::Iterator>::Item: std::iter::Iterator`
@@ -24,7 +24,7 @@ LL | | }
2424 = help: the trait `std::iter::Iterator` is not implemented for `<<T as Case1>::C as std::iter::Iterator>::Item`
2525
2626error[E0277]: `<<T as Case1>::C as std::iter::Iterator>::Item` cannot be sent between threads safely
27- --> $DIR/bad-bounds-on-assoc-in-trait.rs:37 :1
27+ --> $DIR/bad-bounds-on-assoc-in-trait.rs:36 :1
2828 |
2929LL | trait Case1 {
3030 | ----------- required by `Case1`
@@ -44,7 +44,7 @@ LL | | }
4444 = help: the trait `std::marker::Send` is not implemented for `<<T as Case1>::C as std::iter::Iterator>::Item`
4545
4646error[E0277]: `<<T as Case1>::C as std::iter::Iterator>::Item` cannot be shared between threads safely
47- --> $DIR/bad-bounds-on-assoc-in-trait.rs:37 :1
47+ --> $DIR/bad-bounds-on-assoc-in-trait.rs:36 :1
4848 |
4949LL | trait Case1 {
5050 | ----------- required by `Case1`
@@ -64,7 +64,7 @@ LL | | }
6464 = help: the trait `std::marker::Sync` is not implemented for `<<T as Case1>::C as std::iter::Iterator>::Item`
6565
6666error[E0277]: `<_ as Lam<&'a u8>>::App` doesn't implement `std::fmt::Debug`
67- --> $DIR/bad-bounds-on-assoc-in-trait.rs:37 :1
67+ --> $DIR/bad-bounds-on-assoc-in-trait.rs:36 :1
6868 |
6969LL | trait Case1 {
7070 | ----------- required by `Case1`
0 commit comments