mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
23 lines
385 B
Rust
23 lines
385 B
Rust
pub use internal::core::{Trait, Struct};
|
|
|
|
mod internal {
|
|
pub mod core {
|
|
pub struct Struct;
|
|
impl Struct {
|
|
pub fn init() -> Struct {
|
|
Struct
|
|
}
|
|
}
|
|
|
|
pub trait Trait {
|
|
fn test(&self) {
|
|
private();
|
|
}
|
|
}
|
|
|
|
impl Trait for Struct {}
|
|
|
|
fn private() { }
|
|
}
|
|
}
|