diff options
Diffstat (limited to 'tests/rustdoc/doc-assoc-item.rs')
-rw-r--r-- | tests/rustdoc/doc-assoc-item.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rustdoc/doc-assoc-item.rs b/tests/rustdoc/doc-assoc-item.rs new file mode 100644 index 000000000..4f1541865 --- /dev/null +++ b/tests/rustdoc/doc-assoc-item.rs @@ -0,0 +1,18 @@ +pub struct Foo<T> { + x: T, +} + +pub trait Bar { + type Fuu; + + fn foo(foo: Self::Fuu); +} + +// @has doc_assoc_item/struct.Foo.html '//*[@class="impl has-srclink"]' 'impl<T: Bar<Fuu = u32>> Foo<T>' +impl<T: Bar<Fuu = u32>> Foo<T> { + pub fn new(t: T) -> Foo<T> { + Foo { + x: t, + } + } +} |