Closed
Description
Only macros in statement position are stable in 1.30.
error[E0658]: procedural macros cannot be expanded to expressions (see issue #38356)
--> src/main.rs:5:15
|
5 | let sql = sql!(SELECT * FROM posts WHERE id=1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The stabilization hasn't landed in nightly yet either.
error[E0658]: procedural macros cannot be expanded to expressions (see issue #54727)
--> src/main.rs:5:15
|
5 | let sql = sql!(SELECT * FROM posts WHERE id=1);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: add #![feature(proc_macro_hygiene)] to the crate attributes to enable
Mentioning @steveklabnik.
Metadata
Metadata
Assignees
Labels
No labels