Add `while let` to the reference

Closes #17687