Skip to content

Instantly share code, notes, and snippets.

@rebo
Created May 31, 2020 21:08
Show Gist options
  • Save rebo/ffca4bffa19cb0838f909a2bc01b745a to your computer and use it in GitHub Desktop.
Save rebo/ffca4bffa19cb0838f909a2bc01b745a to your computer and use it in GitHub Desktop.
01-test-code.rs
#![feature(proc_macro_hygiene)]
use my_macros::{view_macro,process_part};
#[macro_export]
macro_rules! some_rando_global_name_hohoho_left {
() => {
println!("yes this prints 1");
}
}
#[view_macro]
fn my_view() {
()
}
fn main() {
let hello = 3;
rando_macro![
left!(),
hello
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment