Add comments with type annotations.

This will hopefully help people with their first steps in Rust.

Fixes #16143.
Merge pull request #19743 from steveklabnik/gh16143

Add comments with type annotations.

Reviewed-by: alexcrichton