summaryrefslogtreecommitdiffstats
path: root/src/test/ui/use/auxiliary/use-from-trait-xc.rs
blob: 4abe11941b11f93e2e52890d1a8911f2aacb6abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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() {}
    }
}