2015-04-13 18:23:32 -05:00
|
|
|
use std::ops::Deref;
|
|
|
|
|
|
|
|
pub struct Bar;
|
|
|
|
|
|
|
|
impl Deref for Bar {
|
2017-10-30 20:01:23 -05:00
|
|
|
type Target = String;
|
|
|
|
fn deref(&self) -> &String { loop {} }
|
2015-04-13 18:23:32 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// @has issue_19190_2/struct.Bar.html
|
2017-10-30 20:01:23 -05:00
|
|
|
// @!has - '//*[@id="method.new"]' 'fn new() -> String'
|
|
|
|
// @has - '//*[@id="method.as_str"]' 'fn as_str(&self) -> &str'
|