• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // check-pass
2 // edition:2018
3 // compile-flags: --crate-type lib
4 
conditional_and_guaranteed_initialization(x: usize) -> usize5 async 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) -> usize15 async fn echo(x: usize) -> usize { x }
get_something() -> usize16 async fn get_something() -> usize { 10 }
17