rust/tests/ui/issues/auxiliary/reexported-trait.rs

18 lines
353 B
Rust
Raw Normal View History

2020-06-27 13:08:32 -05:00
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 {}