blob: c8326992115c755596b417b23656d7b611a968e0 [file] [log] [blame]
// https://github.com/rust-lang/rust/issues/19190
#![crate_name="issue_19190_2"]
use std::ops::Deref;
pub struct Bar;
impl Deref for Bar {
type Target = String;
fn deref(&self) -> &String { loop {} }
}
// @has issue_19190_2/struct.Bar.html
// @!has - '//*[@id="method.new"]' 'fn new() -> String'
// @has - '//*[@id="method.as_str"]' 'fn as_str(&self) -> &str'