rustdoc: Resolve nested impl Traits
This commit is contained in:
parent
427c548749
commit
14f32f64c8
2 changed files with 39 additions and 31 deletions
|
|
@ -11,6 +11,8 @@
|
|||
#![feature(universal_impl_trait)]
|
||||
#![crate_name = "foo"]
|
||||
|
||||
use std::io::Read;
|
||||
|
||||
// @has foo/fn.foo.html
|
||||
// @has - //pre 'foo('
|
||||
// @matches - '_x: impl <a class="trait" href="[^"]+/trait\.Clone\.html"'
|
||||
|
|
@ -39,6 +41,11 @@ impl<T> S<T> {
|
|||
// @matches - '_baz:.+struct\.S\.html.+impl .+trait\.Clone\.html'
|
||||
pub fn baz(_baz: S<impl Clone>) {
|
||||
}
|
||||
|
||||
// @has - 'qux</a>('
|
||||
// @matches - 'trait\.Read\.html'
|
||||
pub fn qux(_qux: impl IntoIterator<Item = S<impl Read>>) {
|
||||
}
|
||||
}
|
||||
|
||||
// @has - 'method</a>('
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue