]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/issue-36053-2.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / 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 the method
9     //~| ERROR type mismatch in closure arguments
10 }