2022-11-15 17:38:39 -08:00
|
|
|
error: reached the recursion limit while instantiating `test::<Cons<Cons<Cons<Cons<Cons<...>>>>>>`
|
2020-09-16 03:45:58 +01:00
|
|
|
--> $DIR/recursion.rs:18:11
|
2020-06-21 22:32:35 -04: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-16 03:45:58 +01:00
|
|
|
--> $DIR/recursion.rs:16:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-08-12 17:02:14 -04:00
|
|
|
LL | fn test<T:Dot> (n:isize, i:isize, first:T, second:T) ->isize {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-09-16 03:45:58 +01:00
|
|
|
= note: the full type name has been written to '$TEST_BUILD_DIR/recursion/recursion/recursion.long-type.txt'
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|