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;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_19190_3/struct.Foo.html
|
|
|
|
//@ 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;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_19190_3/struct.Bar.html
|
|
|
|
//@ has - '//*[@id="method.baz"]' 'fn baz(&self)'
|
|
|
|
//@ !has - '//*[@id="method.static_baz"]' 'fn static_baz()'
|
2015-04-13 18:23:32 -05:00
|
|
|
pub use issue_19190_3::Bar;
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has issue_19190_3/struct.MyBar.html
|
|
|
|
//@ has - '//*[@id="method.baz"]' 'fn baz(&self)'
|
|
|
|
//@ !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 {} }
|
|
|
|
}
|