18 lines
353 B
Rust
18 lines
353 B
Rust
|
mod private {
|
||
|
pub trait Trait {
|
||
|
fn trait_method(&self) {
|
||
|
}
|
||
|
}
|
||
|
pub trait TraitB {
|
||
|
fn trait_method_b(&self) {
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pub struct FooStruct;
|
||
|
pub use crate::private::Trait;
|
||
|
impl crate::private::Trait for FooStruct {}
|
||
|
|
||
|
pub use crate::private::TraitB as TraitBRename;
|
||
|
impl crate::private::TraitB for FooStruct {}
|