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