rust/tests/ui/traits/issue-96665.rs
2024-02-16 20:02:50 +00:00

17 lines
314 B
Rust

//@ check-pass
pub trait Sequence<Item, Subsequence: Sequence<Item, Subsequence>> {}
pub trait NodeWalk<Graph: GraphBase, NodeSubwalk: NodeWalk<Graph, NodeSubwalk>>:
Sequence<Graph::NodeIndex, NodeSubwalk>
{
}
pub trait GraphBase {
type NodeIndex;
}
pub trait WalkableGraph: GraphBase {}
fn main() {}