17 lines
265 B
Rust
17 lines
265 B
Rust
#![crate_name = "inner"]
|
|
/// this is a trait
|
|
pub trait SomeTrait {
|
|
/// this is a method for [a trait][SomeTrait]
|
|
fn foo();
|
|
}
|
|
|
|
pub mod bar {
|
|
use super::SomeTrait;
|
|
|
|
pub struct BarStruct;
|
|
|
|
impl SomeTrait for BarStruct {
|
|
fn foo() {}
|
|
}
|
|
}
|