2020-07-11 12:28:05 -05:00
|
|
|
#![crate_name = "inner"]
|
|
|
|
/// this is a trait
|
|
|
|
pub trait SomeTrait {
|
2020-07-14 19:04:41 -05:00
|
|
|
/// this is a method for [a trait][SomeTrait]
|
2020-07-11 12:28:05 -05:00
|
|
|
fn foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod bar {
|
|
|
|
use super::SomeTrait;
|
|
|
|
|
|
|
|
pub struct BarStruct;
|
|
|
|
|
|
|
|
impl SomeTrait for BarStruct {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
}
|