Sorry about the double post. I didnt know deleted posts are still visible.
Basically I have a proc macro that isn't having visibility. I cant find "MyStruct" and i dont know why
main
use procs::display_fields;
#[derive(Debug)]
#[display_fields]
struct MyStruct {//cannot find struct
field1: i32,
field2: String,
}
fn main() {
let my_struct = MyStruct {
field1: 42,
field2: "Hello, World!".to_string(),
};
my_struct.display_fields();
}
the code is here:
https://github.com/sigh-gone/proc_display.git
