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