rust/tests/rustdoc-js/generics-nested.rs
2023-04-14 14:55:45 -07:00

20 lines
241 B
Rust

pub struct Out<A, B = ()> {
a: A,
b: B,
}
pub struct First<In = ()> {
in_: In,
}
pub struct Second;
// Out<First<Second>>
pub fn alef() -> Out<First<Second>> {
loop {}
}
pub fn bet() -> Out<First, Second> {
loop {}
}