summaryrefslogtreecommitdiffstats
path: root/src/test/ui/mismatched_types/issue-36053-2.rs
blob: 17d2292baaf683298c17e48edb0474e1b311f438 (plain)
1
2
3
4
5
6
7
8
9
10
// Regression test for #36053. ICE was caused due to obligations
// being added to a special, dedicated fulfillment cx during
// a probe.

use std::iter::once;
fn main() {
    once::<&str>("str").fuse().filter(|a: &str| true).count();
    //~^ ERROR the method
    //~| ERROR type mismatch in closure arguments
}