]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-13058.stderr
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-13058.stderr
1 error[E0621]: explicit lifetime required in the type of `cont`
2   --> $DIR/issue-13058.rs:14:21
3    |
4 LL | fn check<'r, I: Iterator<Item=usize>, T: Itble<'r, usize, I>>(cont: &T) -> bool
5    |                                                                     -- help: add explicit lifetime `'r` to the type of `cont`: `&'r T`
6 LL | {
7 LL |     let cont_iter = cont.iter();
8    |                     ^^^^^^^^^^^ lifetime `'r` required
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0621`.