]> git.lizzy.rs Git - rust.git/blob - tests/ui/mismatched_types/issue-36053-2.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[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 }