mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +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 {}
|