]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/doc-assoc-item.rs
Rollup merge of #107773 - Mark-Simulacrum:rename-auto-template, r=estebank
[rust.git] / tests / rustdoc / doc-assoc-item.rs
1 pub struct Foo<T> {
2     x: T,
3 }
4
5 pub trait Bar {
6     type Fuu;
7
8     fn foo(foo: Self::Fuu);
9 }
10
11 // @has doc_assoc_item/struct.Foo.html '//*[@class="impl"]' 'impl<T: Bar<Fuu = u32>> Foo<T>'
12 impl<T: Bar<Fuu = u32>> Foo<T> {
13     pub fn new(t: T) -> Foo<T> {
14         Foo {
15             x: t,
16         }
17     }
18 }