Why does Rust think my private type must be public unless I use pub(crate)?

后端 未结 0 488
别那么骄傲
别那么骄傲 2021-01-17 09:54

I\'m using a macro to generate a module, and that module defines a function that returns a type that the user passes in:

macro_rules! generate_mod {
    ($nam         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题