mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
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 {}
|