]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/auxiliary/macro_rules.rs
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / tools / clippy / tests / ui / auxiliary / macro_rules.rs
index 93303865e178ec0dfb8d24638adfe76ee99c50b3..f985a15eda2bb5cbc48fecbbdd1e8c1b0205346e 100644 (file)
@@ -70,3 +70,17 @@ macro_rules! ref_arg_function {
         fn fun_example(ref _x: usize) {}
     };
 }
+
+#[macro_export]
+macro_rules! as_conv_with_arg {
+    (0u32 as u64) => {
+        ()
+    };
+}
+
+#[macro_export]
+macro_rules! as_conv {
+    () => {
+        0u32 as u64
+    };
+}