]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/auxiliary/macro_rules.rs
Rollup merge of #78728 - a1phyr:const_cell_into_inner, r=dtolnay
[rust.git] / src / tools / clippy / tests / ui / auxiliary / macro_rules.rs
index 0bbb9534928effd12458dfd4960534422a237f79..93303865e178ec0dfb8d24638adfe76ee99c50b3 100644 (file)
@@ -56,3 +56,17 @@ macro_rules! option_env_unwrap_external {
         option_env!($env).expect($message)
     };
 }
+
+#[macro_export]
+macro_rules! ref_arg_binding {
+    () => {
+        let ref _y = 42;
+    };
+}
+
+#[macro_export]
+macro_rules! ref_arg_function {
+    () => {
+        fn fun_example(ref _x: usize) {}
+    };
+}