Skip to content

BUG. SQLX error[E0658] When building the project #3121

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

Closed
n-e-x-u-s-i-v opened this issue Mar 15, 2024 · 6 comments
Closed

BUG. SQLX error[E0658] When building the project #3121

n-e-x-u-s-i-v opened this issue Mar 15, 2024 · 6 comments

Comments

@n-e-x-u-s-i-v
Copy link

) -> crate::Result<<E::Database as Database>::Row>

error[E0658]: async fn return type cannot contain a projection or Self that references lifetimes from a parent scope
/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/sqlx-core-0.7.4/src/raw_sql.rs:260:10

note: see issue #103532 rust-lang/rust#103532 for more information

@drlove2002
Copy link

The same happening to my project in the new version 0.7.4

@abonander
Copy link
Collaborator

Try upgrading rustc. SQLx is only tested against latest Rust: https://github.com/launchbadge/sqlx/blob/main/FAQ.md#what-versions-of-rust-does-sqlx-support-what-is-sqlxs-msrv

@ghost
Copy link

ghost commented Apr 12, 2024

I use stable Nix, this is a pain in the ass.

@abonander abonander closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
@ghost
Copy link

ghost commented Apr 12, 2024

Fair enough.

@abonander
Copy link
Collaborator

Closed because no one's said that upgrading rustc didn't fix it.

@TristanBlackwell
Copy link

To confirm, operational with rustc v1.77.2 & sqlx v0.7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants