]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail-fulldeps/auxiliary/use_from_trait_xc.rs
7024c9dad7c11acb37fe157e021eaf19732eb4b5
[rust.git] / src / test / compile-fail-fulldeps / auxiliary / use_from_trait_xc.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #![feature(associated_consts)]
12
13 pub use self::sub::{Bar, Baz};
14
15 pub trait Trait {
16     fn foo(&self);
17     type Assoc;
18     const CONST: u32;
19 }
20
21 struct Foo;
22
23 impl Foo {
24     pub fn new() {}
25
26     pub const C: u32 = 0;
27 }
28
29 mod sub {
30     pub struct Bar;
31
32     impl Bar {
33         pub fn new() {}
34     }
35
36     pub enum Baz {}
37
38     impl Baz {
39         pub fn new() {}
40     }
41 }