Closed
Description
What needs to be fixed?
In the Rust book under Hygiene section for the following code:
macro_rules! foo {
($v:ident) => (let $v = 3);
}
fn main() {
foo!(x);
println!("{}", x);
}
There is missing a semi-colon at the line let $v = 3
which doesn't compile in Rust Playground
Page(s) Affected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Area: documentation for any part of the project, including the compiler, standard library, and toolsArea: documentation for any part of the project, including the compiler, standard library, and tools