]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for/for-loop-type-error.rs
Rollup merge of #93112 - pietroalbini:pa-cve-2022-21658-nightly, r=pietroalbini
[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 }