summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/suggest-ret-on-async-w-late.fixed
blob: 0a08383317f76adb57f2d9531dd4b0690caec9e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// edition: 2021
// run-rustfix

#![allow(unused)]

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

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

fn main() {}