2017-03-20 16:41:19 -05:00
|
|
|
pub struct Foo<T> {
|
|
|
|
x: T,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub trait Bar {
|
|
|
|
type Fuu;
|
|
|
|
|
|
|
|
fn foo(foo: Self::Fuu);
|
|
|
|
}
|
|
|
|
|
2023-01-28 17:35:02 -06: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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|