]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for/for-loop-type-error.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[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 }