2017-03-20 22:41:19 +01:00
|
|
|
pub struct Foo<T> {
|
|
|
|
x: T,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait Bar {
|
|
|
|
type Fuu;
|
|
|
|
|
|
|
|
fn foo(foo: Self::Fuu);
|
|
|
|
}
|
|
|
|
|
2021-06-02 10:59:10 +02:00
|
|
|
// @has doc_assoc_item/struct.Foo.html '//*[@class="impl has-srclink"]' 'impl<T: Bar<Fuu = u32>> Foo<T>'
|
2017-03-20 22:41:19 +01:00
|
|
|
impl<T: Bar<Fuu = u32>> Foo<T> {
|
|
|
|
pub fn new(t: T) -> Foo<T> {
|
|
|
|
Foo {
|
|
|
|
x: t,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|