blob: f38a12dd9883911da5b8d373fe497ec1ca3af7c7 [file] [log] [blame]
//@ 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() {}