rustdoc: Resolve nested impl Traits

This commit is contained in:
Shotaro Yamada 2018-05-03 22:24:50 +09:00
parent 427c548749
commit 14f32f64c8
2 changed files with 39 additions and 31 deletions

View file

@ -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>('