2017-03-20 16:41:19 -05:00
|
|
|
pub struct Foo<T> {
|
|
|
|
x: T,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait Bar {
|
|
|
|
type Fuu;
|
|
|
|
|
|
|
|
fn foo(foo: Self::Fuu);
|
|
|
|
}
|
|
|
|
|
2024-06-21 07:03:08 -05:00
|
|
|
//@ has doc_assoc_item/struct.Foo.html '//*[@class="impl"]' 'impl<T: Bar<Fuu = u32>> Foo<T>'
|
2017-03-20 16:41:19 -05:00
|
|
|
impl<T: Bar<Fuu = u32>> Foo<T> {
|
|
|
|
pub fn new(t: T) -> Foo<T> {
|
|
|
|
Foo {
|
|
|
|
x: t,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|