Skip to content
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

Macro statements need semicolons now. #26

Closed
csouth3 opened this issue Dec 19, 2014 · 0 comments · Fixed by #27
Closed

Macro statements need semicolons now. #26

csouth3 opened this issue Dec 19, 2014 · 0 comments · Fixed by #27

Comments

@csouth3
Copy link
Contributor

csouth3 commented Dec 19, 2014

Trying to compile collect with rustc-dev at current HEAD (commit 840de0720) results in:

/home/csouth3/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/collect-0.0.5/src/iter/ordered_iter.rs:311:9: 311:18 error: expected one of `.`, `;`, or `}`, found `assert_eq`
/home/csouth3/.cargo/registry/src/garden.eu.org-1ecc6299db9ec823/collect-0.0.5/src/iter/ordered_iter.rs:311         assert_eq!(Some((12, 6, 4)), powers_of_two_and_three.next())
                                                                                                                 ^~~~~~~~~
Could not compile `collect`.

This is because rust-lang/rust#19984 makes it so that macros being used as statements need to be terminated by semicolons.

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

Successfully merging a pull request may close this issue.

1 participant