]> git.proxmox.com Git - rustc.git/blob - src/test/ui/mismatched_types/issue-36053-2.rs
New upstream version 1.45.0+dfsg1
[rustc.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 }