only focus on double_must_use + Add Result<(), ()> test
This commit is contained in:
parent
e2742a0ea2
commit
d602743558
2 changed files with 14 additions and 8 deletions
|
|
@ -27,6 +27,11 @@ async fn async_must_use() -> usize {
|
|||
unimplemented!();
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
async fn async_must_use_result() -> Result<(), ()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn main() {
|
||||
must_use_result();
|
||||
must_use_tuple();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue