1 // check-pass 2 // edition:2018 3 // compile-flags: --crate-type lib 4 conditional_and_guaranteed_initialization(x: usize) -> usize5async fn conditional_and_guaranteed_initialization(x: usize) -> usize { 6 let y; 7 if x > 5 { 8 y = echo(10).await; 9 } else { 10 y = get_something().await; 11 } 12 y 13 } 14 echo(x: usize) -> usize15async fn echo(x: usize) -> usize { x } get_something() -> usize16async fn get_something() -> usize { 10 } 17