rust/tests/ui/use/auxiliary/use-from-trait-xc.rs

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