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
pubfnfoo<T,I:IntoIterator<Item=T>,J:IntoIterator<Item=T>>(i:I,j:J) -> implIterator{letmut a = i.into_iter();letmut b = j.into_iter();
std::iter::from_fn(move || {match(a.next(), b.next()){(Some(a),Some(b)) => Some((a, b)),
_ => None,}})}
Hovering at the end of a.next() shows Option<{unknown}> instead of Option<T>, likewise for b.next(). Hovering a in Some(a) shows {unknown} instead of T, etc.
I thought it could be related to from_fn, but in the following:
rust-analyzer version: 0.3.1607-standalone
rustc version: 1.71.0
In the following code:
Hovering at the end of
a.next()
showsOption<{unknown}>
instead ofOption<T>
, likewise forb.next()
. Hoveringa
inSome(a)
shows{unknown}
instead ofT
, etc.I thought it could be related to
from_fn
, but in the following:it works fine.
The text was updated successfully, but these errors were encountered: