Created
January 4, 2014 04:56
-
-
Save bvssvni/8251925 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[feature(macro_rules)] | |
extern mod expr; | |
macro_rules! run( | |
($expr:expr $env:expr) => { | |
let (v, n) = (expr.run)(&mut env); | |
expr = n; | |
v | |
} | |
) | |
Compiler error: | |
error: macro definitions are not stable enough for use and are subject to change | |
/home/sven/Desktop/prob/src/expr/test.rs:5 macro_rules! run( | |
^~~~~~~~~~~ | |
/home/sven/Desktop/prob/src/expr/test.rs:5:0: 5:11 note: add #[feature(macro_rules)] to the crate attributes to enable | |
/home/sven/Desktop/prob/src/expr/test.rs:5 macro_rules! run( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
btw the solution is to add a
;
at the end of the#[...
line