]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-close-associated-type-into-object.nll.stderr
Rollup merge of #60901 - estebank:str-str-str, r=Centril
[rust.git] / src / test / ui / regions / regions-close-associated-type-into-object.nll.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
9 error[E0310]: the associated type `<T as Iter>::Item` may not live long enough
10   --> $DIR/regions-close-associated-type-into-object.rs:22:5
11    |
12 LL |     Box::new(item)
13    |     ^^^^^^^^^^^^^^
14    |
15    = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'static`...
16
17 error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
18   --> $DIR/regions-close-associated-type-into-object.rs:28:5
19    |
20 LL |     Box::new(item)
21    |     ^^^^^^^^^^^^^^
22    |
23    = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
24
25 error[E0309]: the associated type `<T as Iter>::Item` may not live long enough
26   --> $DIR/regions-close-associated-type-into-object.rs:35:5
27    |
28 LL |     Box::new(item)
29    |     ^^^^^^^^^^^^^^
30    |
31    = help: consider adding an explicit lifetime bound `<T as Iter>::Item: 'a`...
32
33 error: aborting due to 4 previous errors
34
35 Some errors have detailed explanations: E0309, E0310.
36 For more information about an error, try `rustc --explain E0309`.