]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-13058.stderr
Account for --remap-path-prefix in save-analysis
[rust.git] / src / test / ui / issue-13058.stderr
1 error[E0621]: explicit lifetime required in the type of `cont`
2   --> $DIR/issue-13058.rs:24:26
3    |
4 LL | fn check<'r, I: Iterator<Item=usize>, T: Itble<'r, usize, I>>(cont: &T) -> bool
5    |                                                               ---- consider changing the type of `cont` to `&'r T`
6 LL | {
7 LL |     let cont_iter = cont.iter();
8    |                          ^^^^ lifetime `'r` required
9
10 error[E0308]: mismatched types
11   --> $DIR/issue-13058.rs:36:11
12    |
13 LL |     check((3, 5));
14    |           ^^^^^^
15    |           |
16    |           expected reference, found tuple
17    |           help: consider borrowing here: `&(3, 5)`
18    |
19    = note: expected type `&_`
20               found type `({integer}, {integer})`
21
22 error: aborting due to 2 previous errors
23
24 Some errors occurred: E0308, E0621.
25 For more information about an error, try `rustc --explain E0308`.