summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-ret-on-async-w-late.rs
blob: 459b94f943b502a22cddea3c6c265acce8de5370 (plain)
1
2
3
4
5
6
7
8
9
10
11
// edition: 2021

// Make sure we don't ICE when suggesting a return type
// for an async fn that has late-bound vars...

async fn ice(_: &i32) {
    true
    //~^ ERROR mismatched types
}

fn main() {}