Currently, type can be annotated everywhere except for for
and the both let
loops.
I propose that you can add type annotation there, like this:
for i: i32 in 0..10 { }
while let Some(x): Option<&str> = iter.next() { }
if let Ok(result): Result<bool,()> = function() { }
Thoughts? Can this be added without grammar problems?