blob: 6330364c92b6a68e62061c3dc46c31f5ef4dfe4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
error[E0282]: type annotations needed for `(_,)`
--> $DIR/issue-20261.rs:4:11
|
LL | for (ref i,) in [].iter() {
| --------- this method call resolves to `std::slice::Iter<'_, T>`
LL | i.clone();
| ^^^^^ cannot infer type
|
= note: type must be known at this point
error: aborting due to previous error
For more information about this error, try `rustc --explain E0282`.
|