How can a submodule import a trait from the root in lib.rs?

后端 未结 0 389
一生所求
一生所求 2021-01-30 14:46

I have a src/lib.rs that contains:

pub trait Compile {
    fn from_source(src: &src) {
        parser::parse(src);
    }
}

And a

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