]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/typeck-macro-interaction-issue-8852.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / typeck-macro-interaction-issue-8852.rs
index 4dec227d52020aa44bdaa6150bb1a2d157947c3e..673e852356266bafc5c35152453260d889201923 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(macro_rules)]
-
 enum T {
     A(int),
     B(f64)
@@ -20,7 +18,7 @@ enum T {
 // doesn't cause capture. Making this macro hygienic (as I've done)
 // could very well make this test case completely pointless....
 
-macro_rules! test(
+macro_rules! test {
     ($id1:ident, $id2:ident, $e:expr) => (
         fn foo(a:T, b:T) -> T {
             match (a, b) {
@@ -30,7 +28,7 @@ fn foo(a:T, b:T) -> T {
             }
         }
     )
-);
+}
 
 test!(x,y,x + y);