#Newb: Getting dead code warning when using tokio

2 messages · Page 1 of 1 (latest)

pallid storm
#

Hello,
I have an async function with #[tokio::main] as its header. the function is declared as async fn main() {} and i'm getting dead code errors. any tips?

maiden sand
#

Is this in main.rs? Or another binary target root.