]> git.lizzy.rs Git - rust.git/blob - tests/ui/for/for-loop-type-error.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / 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 }