Replies: 4 comments 1 reply
-
Do you have an example / repro? |
Beta Was this translation helpful? Give feedback.
-
I may complete my previous comment with some additional information. I have a buggy
However, if I move it into a non annotated function and call it from main, I have the expected output:
Is there something to configure to have a proper output without defining a new function? |
Beta Was this translation helpful? Give feedback.
-
There's something weird going on here. Errors are usually displayed correctly, but I can reproduce your issue. It may be some syntax issue confusing the compiler, or some sort of bug in displaying that error in that specific situation. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue with the |
Beta Was this translation helpful? Give feedback.
-
I'm using some
async main
function using the#[tokio::main]
macro.When I make some code error (which happens quite often) inside the
main
function, all errors are referencing the line of the macro instead of pointing to the lines inside my own code.This makes a pain to find the reason of the bug. Is there any tool or trick to solve this?
Beta Was this translation helpful? Give feedback.
All reactions