]> git.lizzy.rs Git - rust.git/blob - tests/ui/iterators/invalid-iterator-chain-with-int-infer.rs
Rollup merge of #106716 - c410-f3r:rfc-2397-1, r=davidtwco
[rust.git] / tests / ui / iterators / invalid-iterator-chain-with-int-infer.rs
1 fn main() {
2     let x = Some(()).iter().map(|()| 1).sum::<f32>();
3     //~^ ERROR a value of type `f32` cannot be made by summing an iterator over elements of type `{integer}`
4 }