1 error[E0310]: the associated type `<T as Iter>::Item` may not live long enough
2 --> $DIR/regions-close-associated-type-into-object.rs:25:5
4 LL | Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
7 = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`...
9 error[E0310]: the associated type `<T as Iter>::Item` may not live long enough
10 --> $DIR/regions-close-associated-type-into-object.rs:32:5
12 LL | Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
15 = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`...
17 error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
18 --> $DIR/regions-close-associated-type-into-object.rs:38:5
20 LL | Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
23 = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
25 error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
26 --> $DIR/regions-close-associated-type-into-object.rs:45:5
28 LL | Box::new(item) //~ ERROR associated type `<T as Iter>::Item` may not live long enough
31 = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
33 error: aborting due to 4 previous errors
35 Some errors occurred: E0309, E0310.
36 For more information about an error, try `rustc --explain E0309`.