mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
37 lines
503 B
Rust
37 lines
503 B
Rust
pub use reexport::Reexported;
|
|
|
|
pub struct Foo;
|
|
pub enum Bar { X }
|
|
|
|
pub mod foo {
|
|
pub trait PubPub {
|
|
fn method(&self) {}
|
|
|
|
fn method3(&self) {}
|
|
}
|
|
|
|
impl PubPub for u32 {}
|
|
impl PubPub for i32 {}
|
|
}
|
|
pub mod bar {
|
|
trait PubPriv {
|
|
fn method(&self);
|
|
}
|
|
}
|
|
mod qux {
|
|
pub trait PrivPub {
|
|
fn method(&self);
|
|
}
|
|
}
|
|
mod quz {
|
|
trait PrivPriv {
|
|
fn method(&self);
|
|
}
|
|
}
|
|
|
|
mod reexport {
|
|
pub trait Reexported {
|
|
fn method(&self);
|
|
}
|
|
}
|