Skip to content

Commit e04856e

Browse files
committed
Add example co-inductive/mutual recursion issues with trait
1 parent 2c43fc3 commit e04856e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

examples/coverage/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ mod test_closures;
99
mod test_functions;
1010

1111
mod test_instance;
12+
13+
mod test_trait;

examples/coverage/src/test_trait.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Broken..
2+
3+
// // Co-inductive trait
4+
// trait TraitA {
5+
// type B : TraitB;
6+
// }
7+
8+
// trait TraitB {
9+
// fn test<U>(other : U) -> U
10+
// where U: TraitA;
11+
// }

0 commit comments

Comments
 (0)