macros: Allow arguments in non-main functions

This commit is contained in:
Douman
2019-10-01 13:15:46 +02:00
parent 5efe31f2ed
commit a1d1eb5eb3
3 changed files with 24 additions and 30 deletions
@@ -3,9 +3,6 @@ use build_tests::tokio;
#[tokio::main]
fn main_is_not_async() {}
#[tokio::main]
async fn main_fn_has_args(_x: u8) {}
#[tokio::main(foo)]
async fn main_attr_has_unknown_args() {}