]> git.lizzy.rs Git - rust.git/commitdiff
Test that unconfigured macro-expanded macro invocations are not expanded.
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Wed, 18 May 2016 02:02:04 +0000 (02:02 +0000)
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>
Fri, 27 May 2016 23:57:01 +0000 (23:57 +0000)
src/test/compile-fail/expanded-cfg.rs

index a15e0548a86816ab8bb0270d9423dd4c8a5a4915..77351f6e4f171f4dc40c33ce067700078e2e8d3f 100644 (file)
@@ -20,6 +20,9 @@ fn f() {}
             #[cfg_attr(target_thread_local, custom)]
             fn g() {}
         }
+
+        #[cfg(attr)]
+        unconfigured_invocation!();
     }
 }