]> git.lizzy.rs Git - rust.git/blob - src/test/auxiliary/no_method_suggested_traits.rs
Rollup merge of #28991 - goyox86:goyox86/rustfmting-liblog-II, r=alexcrichton
[rust.git] / src / test / auxiliary / no_method_suggested_traits.rs
1 // Copyright 2015 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 pub use reexport::Reexported;
12
13 pub struct Foo;
14 pub enum Bar { X }
15
16 pub mod foo {
17     pub trait PubPub {
18         fn method(&self) {}
19
20         fn method3(&self) {}
21     }
22
23     impl PubPub for u32 {}
24     impl PubPub for i32 {}
25 }
26 pub mod bar {
27     trait PubPriv {
28         fn method(&self);
29     }
30 }
31 mod qux {
32     pub trait PrivPub {
33         fn method(&self);
34     }
35 }
36 mod quz {
37     trait PrivPriv {
38         fn method(&self);
39     }
40 }
41
42 mod reexport {
43     pub trait Reexported {
44         fn method(&self);
45     }
46 }