about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/ambiguous-arg.rs
blob: e8e6ff6d97c8344485a76927b08613ef77aca3ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ edition:2021

// Regression test for #123901. We previously ICE'd as we silently
// swallowed an in the `ExprUseVisitor`.

pub fn test(test: &u64, temp: &u64) {
    async |check, a, b| {
        //~^ ERROR type annotations needed
        temp.abs_diff(12);
    };
}

fn main() {}