-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect E0308: expected &(dyn ToSql + Sync), found &i32 #16336
Comments
One temporary solution is to disable the diagnostic: |
This comment was marked as off-topic.
This comment was marked as off-topic.
I am seeing another similar case when using rust-analyzer version: 0.3.2045 async fn get_from_redis(
redis_connection: &mut deadpool_redis::Connection,
key: String,
) -> Option<String> {
redis_connection
.get::<String, Option<String>>(key)
.await
.unwrap()
}
// deadpool-redis version is "0.15.1" The signature for the
|
When using
deadpool_postgres
, I encountered incorrect diagnostic for E0308.The code compiles correctly, but rust-analyzer shows an error.
See details: bikeshedder/deadpool#296 (comment)
rust-analyzer version: 0.3.1799-standalone (af40101 2024-01-07)
rustc version: rustc 1.75.0 (82e1608df 2023-12-21)
Possibly related:
The text was updated successfully, but these errors were encountered: