-
Version Platform Description I tried this code:
start with cargo run, error occurs: How to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Your code example is too small to show what the issue is. Did you write that code inside a |
Beta Was this translation helpful? Give feedback.
Your code example is too small to show what the issue is. Did you write that code inside a
#[tokio::main]
function? If you're usingblock_on
, then you shouldn't use#[tokio::main]
.