2023-08-14 13:09:53 +00:00
|
|
|
error[E0283]: type annotations needed
|
2023-03-07 04:39:17 +00:00
|
|
|
--> $DIR/runaway-impl-candidate-selection.rs:13:22
|
|
|
|
|
|
|
|
|
|
|
LL | println!("{:?}", iter::<_>());
|
|
|
|
|
| ^^^^^^^^^ cannot infer type of the type parameter `T` declared on the function `iter`
|
2023-08-14 13:09:53 +00:00
|
|
|
|
|
|
|
|
|
= note: cannot satisfy `_: Iterator`
|
|
|
|
|
note: required by a bound in `iter`
|
|
|
|
|
--> $DIR/runaway-impl-candidate-selection.rs:8:12
|
|
|
|
|
|
|
|
|
|
|
LL | fn iter<T: Iterator>() -> <T as Iterator>::Item {
|
|
|
|
|
| ^^^^^^^^ required by this bound in `iter`
|
2023-03-07 04:39:17 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-03-07 04:39:17 +00:00
|
|
|
|
2023-08-14 13:09:53 +00:00
|
|
|
For more information about this error, try `rustc --explain E0283`.
|