]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/inline_local/trait-vis.rs
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / rustdoc / inline_local / trait-vis.rs
1 // Copyright 2018 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 trait ThisTrait {}
12
13 mod asdf {
14 use ThisTrait;
15
16 pub struct SomeStruct;
17
18 impl ThisTrait for SomeStruct {}
19
20 trait PrivateTrait {}
21
22 impl PrivateTrait for SomeStruct {}
23 }
24
25 // @has trait_vis/struct.SomeStruct.html
26 // @has - '//code' 'impl ThisTrait for SomeStruct'
27 // !@has - '//code' 'impl PrivateTrait for SomeStruct'
28 pub use asdf::SomeStruct;