1 error[E0277]: `<<Self as Case1>::C as Iterator>::Item` cannot be sent between threads safely
2 --> $DIR/bad-bounds-on-assoc-in-trait.rs:26:36
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` cannot be sent between threads safely
7 = help: the trait `Send` 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: Send {
11 | ++++++++++++++++++++++++++++++++++++++++++++++++++
13 error[E0277]: `<<Self as Case1>::C as Iterator>::Item` is not an iterator
14 --> $DIR/bad-bounds-on-assoc-in-trait.rs:26:43
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` is not an iterator
19 = help: the trait `Iterator` is not implemented for `<<Self as Case1>::C as Iterator>::Item`
20 help: consider further restricting the associated type
22 LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Iterator {
23 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++
25 error[E0277]: `<<Self as Case1>::C as Iterator>::Item` cannot be shared between threads safely
26 --> $DIR/bad-bounds-on-assoc-in-trait.rs:26:93
28 LL | type C: Clone + Iterator<Item: Send + Iterator<Item: for<'a> Lam<&'a u8, App: Debug>> + Sync>;
29 | ^^^^ `<<Self as Case1>::C as Iterator>::Item` cannot be shared between threads safely
31 = help: the trait `Sync` is not implemented for `<<Self as Case1>::C as Iterator>::Item`
32 help: consider further restricting the associated type
34 LL | trait Case1 where <<Self as Case1>::C as Iterator>::Item: Sync {
35 | ++++++++++++++++++++++++++++++++++++++++++++++++++
37 error: aborting due to 3 previous errors
39 For more information about this error, try `rustc --explain E0277`.