]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for/for-loop-type-error.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / for / for-loop-type-error.rs
1 pub fn main() {
2     let x = () + (); //~ ERROR cannot add `()` to `()`
3
4     // this shouldn't have a flow-on error:
5     for _ in x {}
6 }