rust/tests/ui/async-await/issue-63832-await-short-temporary-lifetime.rs
2024-02-16 20:02:50 +00:00

13 lines
143 B
Rust

//@ check-pass
//@ edition:2018
async fn foo(x: &[Vec<u32>]) -> u32 {
0
}
async fn bar() {
foo(&[vec![123]]).await;
}
fn main() { }