]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/issue-19190-3.rs
Imported Upstream version 1.2.0+dfsg1
[rustc.git] / src / test / rustdoc / issue-19190-3.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 // aux-build:issue-19190-3.rs
12 // ignore-cross-compile
13
14 extern crate issue_19190_3;
15
16 use std::ops::Deref;
17 use issue_19190_3::Baz;
18
19 // @has issue_19190_3/struct.Foo.html
20 // @has - '//*[@id="method.count_ones"]' 'fn count_ones(self) -> u32'
21 // @!has - '//*[@id="method.min_value"]' 'fn min_value() -> i32'
22 pub use issue_19190_3::Foo;
23
24 // @has issue_19190_3/struct.Bar.html
25 // @has - '//*[@id="method.baz"]' 'fn baz(&self)'
26 // @!has - '//*[@id="method.static_baz"]' 'fn static_baz()'
27 pub use issue_19190_3::Bar;
28
29 // @has issue_19190_3/struct.MyBar.html
30 // @has - '//*[@id="method.baz"]' 'fn baz(&self)'
31 // @!has - '//*[@id="method.static_baz"]' 'fn static_baz()'
32 pub struct MyBar;
33
34 impl Deref for MyBar {
35 type Target = Baz;
36 fn deref(&self) -> &Baz { loop {} }
37 }
38