]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/ty-outlives/projection-no-regions-fn.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / nll / ty-outlives / projection-no-regions-fn.stderr
1 error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
2 --> $DIR/projection-no-regions-fn.rs:13:5
3 |
4 LL | Box::new(x.next())
5 | ^^^^^^^^^^^^^^^^^^
6 |
7 = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
8 = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
9
10 error[E0309]: the associated type `<T as Iterator>::Item` may not live long enough
11 --> $DIR/projection-no-regions-fn.rs:28:5
12 |
13 LL | Box::new(x.next())
14 | ^^^^^^^^^^^^^^^^^^
15 |
16 = help: consider adding an explicit lifetime bound `<T as Iterator>::Item: 'a`...
17 = note: ...so that the type `<T as Iterator>::Item` will meet its required lifetime bounds
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0309`.