Skip to content

Commit

Permalink
Add example co-inductive/mutual recursion issues with trait
Browse files Browse the repository at this point in the history
  • Loading branch information
cmester0 committed Nov 25, 2024
1 parent f73a056 commit 5afea93
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/coverage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ mod test_closures;
mod test_functions;

mod test_instance;

mod test_trait;
11 changes: 11 additions & 0 deletions examples/coverage/src/test_trait.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Broken..

// // Co-inductive trait
// trait TraitA {
// type B : TraitB;
// }

// trait TraitB {
// fn test<U>(other : U) -> U
// where U: TraitA;
// }

0 comments on commit 5afea93

Please sign in to comment.