]> git.lizzy.rs Git - rust.git/blob - src/test/ui/mismatched_types/issue-36053-2.rs
Auto merge of #76110 - FedericoPonzi:convert-openoptions-cint, r=JoshTriplett
[rust.git] / src / test / ui / mismatched_types / issue-36053-2.rs
1 // Regression test for #36053. ICE was caused due to obligations
2 // being added to a special, dedicated fulfillment cx during
3 // a probe.
4
5 use std::iter::once;
6 fn main() {
7     once::<&str>("str").fuse().filter(|a: &str| true).count();
8     //~^ ERROR no method named `count`
9     //~| ERROR type mismatch in closure arguments
10 }