My main
function is decorated with two proc macros like this:
#[paw::main]
#[tokio::main]
pub async fn main(args: Args) -> Result<()>
This compiles and runs as I expect it but VS code's rust-analyzer
gives me this error on both lines of attribute macros #[paw::main]
and #[tokio::main]
. The error message is:
proc macro `main` not expanded: proc macro not found rust-analyzer (unresolved-proc-macro)