]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20261.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-20261.stderr
1 error[E0282]: type annotations needed
2   --> $DIR/issue-20261.rs:14:11
3    |
4 LL |     for (ref i,) in [].iter() {
5    |                     --------- the element type for this iterator is not specified
6 LL |         i.clone();
7    |           ^^^^^ cannot infer type
8    |
9    = note: type must be known at this point
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0282`.