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.
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.
11 // aux-build:issue-19190-3.rs
12 // ignore-cross-compile
14 extern crate issue_19190_3;
17 use issue_19190_3::Baz;
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;
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;
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()'
34 impl Deref for MyBar {
36 fn deref(&self) -> &Baz { loop {} }