only focus on double_must_use + Add Result<(), ()> test

This commit is contained in:
blyxyas 2023-04-03 15:15:43 +02:00
parent e2742a0ea2
commit d602743558
No known key found for this signature in database
GPG key ID: 4D38170B5A2FC334
2 changed files with 14 additions and 8 deletions

View file

@ -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();