]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-ui/normalize-cycle.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / rustdoc-ui / normalize-cycle.rs
CommitLineData
a2a8927a
XL
1// check-pass
2// Regresion test for <https://github.com/rust-lang/rust/issues/79459>.
3pub trait Query {}
4
5pub trait AsQuery {
6 type Query;
7}
8
9impl<T: Query> AsQuery for T {
10 type Query = T;
11}
12
13pub trait SelectDsl<Selection> {
14 type Output;
15}
16
17impl<T, Selection> SelectDsl<Selection> for T
18where
19 T: AsQuery,
20 T::Query: SelectDsl<Selection>,
21{
22 type Output = <T::Query as SelectDsl<Selection>>::Output;
23}
24
25pub type Select<Source, Selection> = <Source as SelectDsl<Selection>>::Output;