diff options
Diffstat (limited to 'tests/rustdoc/assoc/doc-assoc-item.rs')
| -rw-r--r-- | tests/rustdoc/assoc/doc-assoc-item.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rustdoc/assoc/doc-assoc-item.rs b/tests/rustdoc/assoc/doc-assoc-item.rs new file mode 100644 index 00000000000..2eb82abfc0b --- /dev/null +++ b/tests/rustdoc/assoc/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"]' 'impl<T: Bar<Fuu = u32>> Foo<T>' +impl<T: Bar<Fuu = u32>> Foo<T> { + pub fn new(t: T) -> Foo<T> { + Foo { + x: t, + } + } +} |
