]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0310]: the associated type `<T as Iter>::Item` may not live long enough |
0731742a | 2 | --> $DIR/regions-close-associated-type-into-object.rs:15:5 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | Box::new(item) |
b7449926 XL |
5 | | ^^^^^^^^^^^^^^ |
6 | | | |
7 | = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`... | |
f9f354fc | 8 | = note: ...so that the type `<T as Iter>::Item` will meet its required lifetime bounds |
b7449926 XL |
9 | |
10 | error[E0310]: the associated type `<T as Iter>::Item` may not live long enough | |
0731742a | 11 | --> $DIR/regions-close-associated-type-into-object.rs:22:5 |
b7449926 | 12 | | |
532ac7d7 | 13 | LL | Box::new(item) |
b7449926 XL |
14 | | ^^^^^^^^^^^^^^ |
15 | | | |
16 | = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`... | |
1b1a35ee | 17 | = note: ...so that the type `Box<<T as Iter>::Item>` will meet its required lifetime bounds |
b7449926 XL |
18 | |
19 | error[E0309]: the associated type `<T as Iter>::Item` may not live long enough | |
0731742a | 20 | --> $DIR/regions-close-associated-type-into-object.rs:28:5 |
b7449926 | 21 | | |
532ac7d7 | 22 | LL | Box::new(item) |
b7449926 XL |
23 | | ^^^^^^^^^^^^^^ |
24 | | | |
25 | = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`... | |
f9f354fc | 26 | = note: ...so that the type `<T as Iter>::Item` will meet its required lifetime bounds |
b7449926 XL |
27 | |
28 | error[E0309]: the associated type `<T as Iter>::Item` may not live long enough | |
0731742a | 29 | --> $DIR/regions-close-associated-type-into-object.rs:35:5 |
b7449926 | 30 | | |
532ac7d7 | 31 | LL | Box::new(item) |
b7449926 XL |
32 | | ^^^^^^^^^^^^^^ |
33 | | | |
34 | = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`... | |
1b1a35ee | 35 | = note: ...so that the type `Box<<T as Iter>::Item>` will meet its required lifetime bounds |
b7449926 XL |
36 | |
37 | error: aborting due to 4 previous errors | |
38 | ||
48663c56 | 39 | Some errors have detailed explanations: E0309, E0310. |
b7449926 | 40 | For more information about an error, try `rustc --explain E0309`. |