2015-04-13 18:23:32 -05:00
|
|
|
// aux-build:issue-19190-3.rs
|
2015-04-22 17:22:36 -05:00
|
|
|
// ignore-cross-compile
|
2015-04-13 18:23:32 -05:00
|
|
|
|
2023-09-27 19:22:18 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/19190
|
2023-09-27 18:51:21 -05:00
|
|
|
#![crate_name="issue_19190_3"]
|
|
|
|
|
2015-04-13 18:23:32 -05:00
|
|
|
extern crate issue_19190_3;
|
|
|
|
|
|
|
|
use std::ops::Deref;
|
|
|
|
use issue_19190_3::Baz;
|
|
|
|
|
|
|
|
// @has issue_19190_3/struct.Foo.html
|
2017-10-30 20:01:23 -05:00
|
|
|
// @has - '//*[@id="method.as_str"]' 'fn as_str(&self) -> &str'
|
|
|
|
// @!has - '//*[@id="method.new"]' 'fn new() -> String'
|
2015-04-13 18:23:32 -05:00
|
|
|
pub use issue_19190_3::Foo;
|
|
|
|
|
|
|
|
// @has issue_19190_3/struct.Bar.html
|
|
|
|
// @has - '//*[@id="method.baz"]' 'fn baz(&self)'
|
2015-04-26 14:03:38 -05:00
|
|
|
// @!has - '//*[@id="method.static_baz"]' 'fn static_baz()'
|
2015-04-13 18:23:32 -05:00
|
|
|
pub use issue_19190_3::Bar;
|
|
|
|
|
|
|
|
// @has issue_19190_3/struct.MyBar.html
|
|
|
|
// @has - '//*[@id="method.baz"]' 'fn baz(&self)'
|
2015-04-26 14:03:38 -05:00
|
|
|
// @!has - '//*[@id="method.static_baz"]' 'fn static_baz()'
|
2015-04-13 18:23:32 -05:00
|
|
|
pub struct MyBar;
|
|
|
|
|
|
|
|
impl Deref for MyBar {
|
|
|
|
type Target = Baz;
|
|
|
|
fn deref(&self) -> &Baz { loop {} }
|
|
|
|
}
|