Created
May 31, 2020 21:08
-
-
Save rebo/ffca4bffa19cb0838f909a2bc01b745a to your computer and use it in GitHub Desktop.
01-test-code.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![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