rust/tests/rustdoc-js/gat.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
308 B
Rust
Raw Normal View History

pub trait Foo {
type Assoc<T>;
}
2024-06-03 07:35:56 +00: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 {}
}