mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
30 lines
329 B
Rust
30 lines
329 B
Rust
pub use self::sub::{Bar, Baz};
|
|
|
|
pub trait Trait {
|
|
fn foo(&self);
|
|
type Assoc;
|
|
const CONST: u32;
|
|
}
|
|
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
pub fn new() {}
|
|
|
|
pub const C: u32 = 0;
|
|
}
|
|
|
|
mod sub {
|
|
pub struct Bar;
|
|
|
|
impl Bar {
|
|
pub fn new() {}
|
|
}
|
|
|
|
pub enum Baz {}
|
|
|
|
impl Baz {
|
|
pub fn new() {}
|
|
}
|
|
}
|