You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust 2021 has reserved the prefix#identifier syntax. This causes the following to fail to compile
use maud::html;
fn main() {
let markup = html! {
div#my-id {}
};
}
because div#my-id uses the reserved syntax.
The easy fix is just to add a space between the tokens: div #my-id. Not very significant but the examples on the website should perhaps be updated with a note about Rust 2021.
The text was updated successfully, but these errors were encountered:
BTW, the docs on main mention some unreleased features (#283). So to avoid confusion, I'll hold off on deploying the docs changes until I cut a new release.
Rust 2021 has reserved the
prefix#identifier
syntax. This causes the following to fail to compilebecause
div#my-id
uses the reserved syntax.The easy fix is just to add a space between the tokens:
div #my-id
. Not very significant but the examples on the website should perhaps be updated with a note about Rust 2021.The text was updated successfully, but these errors were encountered: