]> git.lizzy.rs Git - rust.git/blob - src/test/ui/auxiliary/use_from_trait_xc.rs
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / auxiliary / use_from_trait_xc.rs
1 pub use self::sub::{Bar, Baz};
2
3 pub trait Trait {
4     fn foo(&self);
5     type Assoc;
6     const CONST: u32;
7 }
8
9 struct Foo;
10
11 impl Foo {
12     pub fn new() {}
13
14     pub const C: u32 = 0;
15 }
16
17 mod sub {
18     pub struct Bar;
19
20     impl Bar {
21         pub fn new() {}
22     }
23
24     pub enum Baz {}
25
26     impl Baz {
27         pub fn new() {}
28     }
29 }