diff options
Diffstat (limited to 'tests/rustdoc/issue-33592.rs')
-rw-r--r-- | tests/rustdoc/issue-33592.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-33592.rs b/tests/rustdoc/issue-33592.rs new file mode 100644 index 000000000..7a128f0b8 --- /dev/null +++ b/tests/rustdoc/issue-33592.rs @@ -0,0 +1,13 @@ +#![crate_name = "foo"] + +pub trait Foo<T> {} + +pub struct Bar; + +pub struct Baz; + +// @has foo/trait.Foo.html '//h3[@class="code-header"]' 'impl Foo<i32> for Bar' +impl Foo<i32> for Bar {} + +// @has foo/trait.Foo.html '//h3[@class="code-header"]' 'impl<T> Foo<T> for Baz' +impl<T> Foo<T> for Baz {} |