Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
// check-pass
|
||||
// edition:2018
|
||||
// compile-flags: --crate-type lib
|
||||
|
||||
async fn conditional_and_guaranteed_initialization(x: usize) -> usize {
|
||||
let y;
|
||||
if x > 5 {
|
||||
y = echo(10).await;
|
||||
} else {
|
||||
y = get_something().await;
|
||||
}
|
||||
y
|
||||
}
|
||||
|
||||
async fn echo(x: usize) -> usize { x }
|
||||
async fn get_something() -> usize { 10 }
|
Loading…
Add table
Add a link
Reference in a new issue