2022-11-15 19:38:39 -06:00
|
|
|
error: reached the recursion limit while instantiating `test::<Cons<Cons<Cons<Cons<Cons<...>>>>>>`
|
2020-09-15 21:45:58 -05:00
|
|
|
--> $DIR/recursion.rs:18:11
|
2020-06-21 21:32:35 -05:00
|
|
|
|
|
|
|
|
LL | _ => {test (n-1, i+1, Cons {head:2*i+1, tail:first}, Cons{head:i*i, tail:second})}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: `test` defined here
|
2020-09-15 21:45:58 -05:00
|
|
|
--> $DIR/recursion.rs:16:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-08-12 16:02:14 -05:00
|
|
|
LL | fn test<T:Dot> (n:isize, i:isize, first:T, second:T) ->isize {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-09-15 21:45:58 -05:00
|
|
|
= note: the full type name has been written to '$TEST_BUILD_DIR/recursion/recursion/recursion.long-type.txt'
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|