about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2018-05-03 22:24:50 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2018-05-03 22:34:10 +0900
commit14f32f64c8d4700b40ce4e49596b460869b15fe7 (patch)
treefc438ef48bd0ba8327a2749af7a8253c288a754f /src/test
parent427c5487493fbd5e96e81b7d3ba54784e0805df7 (diff)
downloadrust-14f32f64c8d4700b40ce4e49596b460869b15fe7.tar.gz
rust-14f32f64c8d4700b40ce4e49596b460869b15fe7.zip
rustdoc: Resolve nested `impl Trait`s
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc/universal-impl-trait.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc/universal-impl-trait.rs b/src/test/rustdoc/universal-impl-trait.rs
index 4cf99562c52..af51ff3d941 100644
--- a/src/test/rustdoc/universal-impl-trait.rs
+++ b/src/test/rustdoc/universal-impl-trait.rs
@@ -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>('