Rust 如何在sqlx中运行嵌套查询?

Rust 如何在sqlx中运行嵌套查询?,rust,Rust,我想在sqlx中运行嵌套查询。 现在我试着把它当作 sqlx::query_as!(NseData, "select * from nse_data where trading_day = (select max(trading_day) from nse_data)").fetch_one(&app_context.db_connection).await?; 但它给了我以下的错误 error[E0658]: attributes on expressions are experi

我想在sqlx中运行嵌套查询。 现在我试着把它当作

sqlx::query_as!(NseData, "select * from nse_data  where trading_day = (select max(trading_day) from nse_data)").fetch_one(&app_context.db_connection).await?;
但它给了我以下的错误

error[E0658]: attributes on expressions are experimental
  --> db/src/nse_data.rs:30:9
   |
30 |         sqlx::query_as!(NseData, "select * from nse_data  where trading_day = (select max(trading_day) from nse_data)").await?
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)