rust/src/test/ui/auxiliary/use_from_trait_xc.rs
2018-12-25 21:08:33 -07:00

29 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() {}
}
}