]> git.lizzy.rs Git - rust.git/blob - src/test/compile-fail/auxiliary/use_from_trait_xc.rs
remove associated_consts feature gate
[rust.git] / src / test / compile-fail / 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
12 pub use self::sub::{Bar, Baz};
13
14 pub trait Trait {
15     fn foo(&self);
16     type Assoc;
17     const CONST: u32;
18 }
19
20 struct Foo;
21
22 impl Foo {
23     pub fn new() {}
24
25     pub const C: u32 = 0;
26 }
27
28 mod sub {
29     pub struct Bar;
30
31     impl Bar {
32         pub fn new() {}
33     }
34
35     pub enum Baz {}
36
37     impl Baz {
38         pub fn new() {}
39     }
40 }