1 error[E0277]: `<<Self as Case1>::C as Iterator>::Item` is not an iterator
2 --> $DIR/bad-bounds-on-assoc-in-trait.rs:27:5
4 LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8, App: Debug>> + Sync>;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<<Self as Case1>::C as Iterator>::Item` is not an iterator
7 = help: the trait `Iterator` is not implemented for `<<Self as Case1>::C as Iterator>::Item`
8 help: consider further restricting the associated type
10 LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Iterator {
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error[E0277]: `<<Self as Case1>::C as Iterator>::Item` cannot be sent between threads safely
14 --> $DIR/bad-bounds-on-assoc-in-trait.rs:27:36
16 LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8, App: Debug>> + Sync>;
17 | ^^^^ `<<Self as Case1>::C as Iterator>::Item` cannot be sent between threads safely
19 ::: $SRC_DIR/core/src/marker.rs:LL:COL
21 LL | pub unsafe auto trait Send {
22 | -------------------------- required by this bound in `Send`
24 = help: the trait `Send` is not implemented for `<<Self as Case1>::C as Iterator>::Item`
25 help: consider further restricting the associated type
27 LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Send {
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 error[E0277]: `<<Self as Case1>::C as Iterator>::Item` cannot be shared between threads safely
31 --> $DIR/bad-bounds-on-assoc-in-trait.rs:27:93
33 LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8, App: Debug>> + Sync>;
34 | ^^^^ `<<Self as Case1>::C as Iterator>::Item` cannot be shared between threads safely
36 ::: $SRC_DIR/core/src/marker.rs:LL:COL
38 LL | pub unsafe auto trait Sync {
39 | -------------------------- required by this bound in `Sync`
41 = help: the trait `Sync` is not implemented for `<<Self as Case1>::C as Iterator>::Item`
42 help: consider further restricting the associated type
44 LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Sync {
45 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
47 error: aborting due to 3 previous errors
49 For more information about this error, try `rustc --explain E0277`.