]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0621]: explicit lifetime required in the type of `cont` |
923072b8 | 2 | --> $DIR/issue-13058.rs:14:21 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | fn check<'r, I: Iterator<Item=usize>, T: Itble<'r, usize, I>>(cont: &T) -> bool |
b7449926 | 5 | | -- help: add explicit lifetime `'r` to the type of `cont`: `&'r T` |
0531ce1d XL |
6 | LL | { |
7 | LL | let cont_iter = cont.iter(); | |
923072b8 | 8 | | ^^^^^^^^^^^ lifetime `'r` required |
ff7c6d11 | 9 | |
0bf4aa26 | 10 | error: aborting due to previous error |
ff7c6d11 | 11 | |
0bf4aa26 | 12 | For more information about this error, try `rustc --explain E0621`. |