]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-19190-2.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / issue-19190-2.rs
1 use std::ops::Deref;
2
3 pub struct Bar;
4
5 impl Deref for Bar {
6     type Target = String;
7     fn deref(&self) -> &String { loop {} }
8 }
9
10 // @has issue_19190_2/struct.Bar.html
11 // @!has - '//*[@id="method.new"]' 'fn new() -> String'
12 // @has - '//*[@id="method.as_str"]' 'fn as_str(&self) -> &str'