Confusing error message on variables created on the fly and passed to an async fn #66440
You can replicate this error by compiling my project https://github.com/nappa85/Pokifications/tree/mysql_async, editing file https://github.com/nappa85/Pokifications/blob/mysql_async/src/bot/message.rs on line 106, putting the query String directly on the query method, like that:
Creating the String and then passing it to the method, it works:
I'm aware that this is a complex case, probably given by the a combination of elements, between the others the async_trait crate.
I'm available for any clarification or test.
The text was updated successfully, but these errors were encountered: