mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
17 lines
313 B
Rust
17 lines
313 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() {}
|