]>
Commit | Line | Data |
---|---|---|
92a42be0 | 1 | macro_rules! foo { |
8bb4bdeb | 2 | ($a:expr) => a; //~ ERROR macro rhs must be delimited |
92a42be0 SL |
3 | } |
4 | ||
5 | fn main() { | |
3157f602 XL |
6 | foo!(0); // Check that we report errors at macro definition, not expansion. |
7 | ||
8 | let _: cfg!(foo) = (); //~ ERROR non-type macro in type position | |
92a42be0 | 9 | } |