add test case for issue-61076
This commit is contained in:
parent
8d16eeb8c9
commit
32a46e9115
1 changed files with 12 additions and 0 deletions
12
src/test/ui/async-await/issue-61076.rs
Normal file
12
src/test/ui/async-await/issue-61076.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// edition:2018
|
||||
|
||||
async fn foo() -> Result<(), ()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn bar() -> Result<(), ()> {
|
||||
foo()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue