diff options
| author | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2019-06-21 12:23:05 +0900 |
|---|---|---|
| committer | Shotaro Yamada <sinkuu@sinkuu.xyz> | 2019-08-19 17:49:54 +0900 |
| commit | b78367d8e8c3273b2cdeefc4ce55897e08e592b2 (patch) | |
| tree | 0e2b01e87ebec1e1c9ade08a3c5c8e467cb9b741 /src/test/rustdoc/inline_cross/impl_trait.rs | |
| parent | cdff9189556bb7de2b9a8a72344c9d8ec6099fcd (diff) | |
| download | rust-b78367d8e8c3273b2cdeefc4ce55897e08e592b2.tar.gz rust-b78367d8e8c3273b2cdeefc4ce55897e08e592b2.zip | |
Support `impl Trait` in inlined documentation
Diffstat (limited to 'src/test/rustdoc/inline_cross/impl_trait.rs')
| -rw-r--r-- | src/test/rustdoc/inline_cross/impl_trait.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/rustdoc/inline_cross/impl_trait.rs b/src/test/rustdoc/inline_cross/impl_trait.rs new file mode 100644 index 00000000000..091baa9773e --- /dev/null +++ b/src/test/rustdoc/inline_cross/impl_trait.rs @@ -0,0 +1,13 @@ +// aux-build:impl_trait_aux.rs + +extern crate impl_trait_aux; + +// @has impl_trait/fn.func.html +// @has - '//pre[@class="rust fn"]' "pub fn func<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)" +// @!has - '//pre[@class="rust fn"]' 'where' +pub use impl_trait_aux::func; + +// @has impl_trait/struct.Foo.html +// @has - '//code[@id="method.v"]' "pub fn method<'a>(_x: impl Clone + Into<Vec<u8>> + 'a)" +// @!has - '//code[@id="method.v"]' 'where' +pub use impl_trait_aux::Foo; |
