blob: 6d6f23d2844a67c26dee3adf0f2a8f7a3dda756b [file] [log] [blame]
// build-pass (FIXME(62277): could be check-pass?)
trait FooTrait {}
trait BarTrait {
fn foo<T: FooTrait>(_: T) -> Self;
}
struct FooStruct(u32);
impl BarTrait for FooStruct {
fn foo<T: FooTrait>(_: T) -> Self {
Self(u32::default())
}
}
fn main() {}