]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issue-63832-await-short-temporary-lifetime.rs
Merge commit 'c19edfd71a1d0ddef86c2c67fdb40718d40a72b4' into sync_cg_clif-2022-07-25
[rust.git] / src / test / ui / async-await / issue-63832-await-short-temporary-lifetime.rs
1 // check-pass
2 // edition:2018
3
4 async fn foo(x: &[Vec<u32>]) -> u32 {
5     0
6 }
7
8 async fn bar() {
9     foo(&[vec![123]]).await;
10 }
11
12 fn main() { }