]> git.proxmox.com Git - rustc.git/blame - src/test/ui/regions/regions-close-associated-type-into-object.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / regions / regions-close-associated-type-into-object.stderr
CommitLineData
b7449926 1error[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 4LL | 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
10error[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 13LL | 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
19error[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 22LL | 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
28error[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 31LL | 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
37error: aborting due to 4 previous errors
38
48663c56 39Some errors have detailed explanations: E0309, E0310.
b7449926 40For more information about an error, try `rustc --explain E0309`.