summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/search-index-generics-recursion-bug-issue-59502.rs
blob: ce51556dd418b4cac6a207a38cbb466aa55c04d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

// Minimization of issue #59502

trait MyTrait<T> {
    type Output;
}

pub fn pow<T: MyTrait<T, Output = T>>(arg: T) -> T {
    arg
}