You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: `()` is not an iterator
--> src\main.rs:68:24
|
68 | fn get_numbers<T>() -> impl Iterator<Item=Result<i32, String>>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
69 | {
70 | unimplemented!()
| ---------------- this returned value is of type `!`
|
= help: the trait `std::iter::Iterator` is not implemented for `()`
= note: the return type of a function must have a statically known size
I tried this code:
I expected to see this happen: compile success
Instead, this happened:
Meta
rustc --version --verbose
:If you use templates then compile success.
The text was updated successfully, but these errors were encountered: