This only affects events loops that uses the window. A breaking change in Rust borrows the iterator for the whole for loop: https://github.com/rust-lang/rust/pull/17101 Also, see https://github.com/rust-lang/rust/issues/8372