2022-11-15 17:38:39 -08:00
|
|
|
error: reached the recursion limit while instantiating `test::<Cons<Cons<Cons<Cons<Cons<...>>>>>>`
|
2025-01-30 17:10:19 +00:00
|
|
|
--> $DIR/recursion.rs:19: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
|
2025-01-30 17:10:19 +00:00
|
|
|
--> $DIR/recursion.rs:17: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 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2025-01-30 17:10:19 +00:00
|
|
|
= note: the full type name has been written to '$TEST_BUILD_DIR/$FILE.long-type.txt'
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-08-08 14:28:26 +02:00
|
|
|
|