2023-09-22 19:27:06 -05:00
|
|
|
pub trait Foo {
|
|
|
|
type Assoc<T>;
|
|
|
|
}
|
|
|
|
|
2024-06-03 02:35:56 -05:00
|
|
|
pub fn sample<X: Foo<Assoc<u8> = u8>>(_: X) -> u32 {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
pub fn synergy(_: impl Foo<Assoc<u8> = u8>) -> ! {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
pub fn consider(_: impl Foo<Assoc<u8> = u32>) -> bool {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
pub fn integrate<T>(_: impl Foo<Assoc<T> = T>) -> T {
|
|
|
|
loop {}
|
|
|
|
}
|