summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issue-63832-await-short-temporary-lifetime.rs
blob: c5ea2b821ad782b53796875147081ba0ec4d1cff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// check-pass
// edition:2018

async fn foo(x: &[Vec<u32>]) -> u32 {
    0
}

async fn bar() {
    foo(&[vec![123]]).await;
}

fn main() { }