rust/src/test/ui/issues/issue-50582.rs
Josh Stone 842014d8fc Add an explicit test for issue #50582
This code no longer ICEs, and @yodaldevoid found that it was fixed by
commit fe5710a. While that added a similar test, we can explicitly test
this reproducer too.

Closes #50582.
2019-03-04 13:28:31 -08:00

5 lines
86 B
Rust

fn main() {
Vec::<[(); 1 + for x in 0..1 {}]>::new();
//~^ ERROR cannot add
}