]> git.proxmox.com Git - rustc.git/blame - src/test/compile-fail/auxiliary/no_method_suggested_traits.rs
New upstream version 1.18.0+dfsg1
[rustc.git] / src / test / compile-fail / auxiliary / no_method_suggested_traits.rs
CommitLineData
85aaf69f
SL
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
11pub use reexport::Reexported;
12
13pub struct Foo;
14pub enum Bar { X }
15
16pub 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}
26pub mod bar {
27 trait PubPriv {
28 fn method(&self);
29 }
30}
31mod qux {
32 pub trait PrivPub {
33 fn method(&self);
34 }
35}
36mod quz {
37 trait PrivPriv {
38 fn method(&self);
39 }
40}
41
42mod reexport {
43 pub trait Reexported {
44 fn method(&self);
45 }
46}