]> git.lizzy.rs Git - rust.git/blob - tests/ui/recursion/recursion.polonius.stderr
Auto merge of #106520 - ehuss:update-mdbook, r=Mark-Simulacrum
[rust.git] / tests / ui / recursion / recursion.polonius.stderr
1 error: reached the recursion limit while instantiating `test::<Cons<Cons<Cons<Cons<Cons<...>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
2   --> $DIR/recursion.rs:18:11
3    |
4 LL |     _ => {test (n-1, i+1, Cons {head:2*i+1, tail:first}, Cons{head:i*i, tail:second})}
5    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: `test` defined here
8   --> $DIR/recursion.rs:16:1
9    |
10 LL | fn test<T:Dot> (n:isize, i:isize, first:T, second:T) ->isize {
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = note: the full type name has been written to '$TEST_BUILD_DIR/recursion/recursion.polonius/recursion.long-type.txt'
13
14 error: aborting due to previous error
15