49aad941 FG |
1 | type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>; |
2 | //~^ ERROR cycle detected when expanding type alias |
3 | |
4 | fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> { |
5 | Box::new(i) |
6 | } |
7 | |
8 | fn main() { |
9 | let meh = 42; |
10 | let muh = 42; |
11 | assert!(bar(&meh) == bar(&muh)); |
12 | } |