2024-09-24 20:18:01 -05:00
|
|
|
#![feature(rustdoc_internals)]
|
|
|
|
|
|
|
|
#[doc(search_unbox)]
|
2023-09-09 18:49:29 -05:00
|
|
|
pub struct Out<A, B = ()> {
|
|
|
|
a: A,
|
|
|
|
b: B,
|
|
|
|
}
|
|
|
|
|
2024-09-24 20:18:01 -05:00
|
|
|
#[doc(search_unbox)]
|
2023-09-09 18:49:29 -05:00
|
|
|
pub struct Out1<A, const N: usize> {
|
|
|
|
a: [A; N],
|
|
|
|
}
|
|
|
|
|
2024-09-24 20:18:01 -05:00
|
|
|
#[doc(search_unbox)]
|
2023-09-09 18:49:29 -05:00
|
|
|
pub struct Out2<A, const N: usize> {
|
|
|
|
a: [A; N],
|
|
|
|
}
|
|
|
|
|
2024-09-24 20:18:01 -05:00
|
|
|
#[doc(search_unbox)]
|
2023-09-09 18:49:29 -05:00
|
|
|
pub struct Out3<A, B> {
|
|
|
|
a: A,
|
|
|
|
b: B,
|
|
|
|
}
|
|
|
|
|
2024-09-24 20:18:01 -05:00
|
|
|
#[doc(search_unbox)]
|
2023-09-09 18:49:29 -05:00
|
|
|
pub struct Out4<A, B> {
|
|
|
|
a: A,
|
|
|
|
b: B,
|
|
|
|
}
|
|
|
|
|
2024-09-24 20:18:01 -05:00
|
|
|
#[doc(search_unbox)]
|
2023-09-09 18:49:29 -05:00
|
|
|
pub struct Inside<T>(T);
|
|
|
|
|
|
|
|
pub fn alpha<const N: usize, T>(_: Inside<T>) -> Out<Out1<T, N>, Out2<T, N>> {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn beta<T, U>(_: Inside<T>) -> Out<Out3<T, U>, Out4<U, T>> {
|
|
|
|
loop {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn gamma<T, U>(_: Inside<T>) -> Out<Out3<U, T>, Out4<T, U>> {
|
|
|
|
loop {}
|
|
|
|
}
|