From 3c6511f69c7639abff60ac9999a08ce2daa24a7d Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 13 Jan 2023 14:25:40 +0800 Subject: macro: try to write a macro for inhereting graphs An attempt to write a derive macro to automatically derive the various graph traits. --- graph_macro/tests/works.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 graph_macro/tests/works.rs (limited to 'graph_macro/tests/works.rs') diff --git a/graph_macro/tests/works.rs b/graph_macro/tests/works.rs new file mode 100644 index 0000000..fe8a853 --- /dev/null +++ b/graph_macro/tests/works.rs @@ -0,0 +1,13 @@ +#![allow(dead_code)] + +use graph_macro::Testing; + +#[derive(Debug, Testing)] +struct Haha { + size: usize, +} + +#[test] +fn it_works() { + println!("it works: {:?}", Haha { size: 0 }); +} -- cgit v1.2.3-18-g5258