mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00

Replace ad-hoc type path shortening logic for recursive mono instantiation errors to use `tcx.short_string()` instead.
17 lines
761 B
Plaintext
17 lines
761 B
Plaintext
error: reached the recursion limit while instantiating `test::<Cons<Cons<Cons<Cons<Cons<Cons<...>>>>>>>`
|
|
--> $DIR/recursion.rs:17:11
|
|
|
|
|
LL | _ => {test (n-1, i+1, Cons {head:2*i+1, tail:first}, Cons{head:i*i, tail:second})}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: `test` defined here
|
|
--> $DIR/recursion.rs:15:1
|
|
|
|
|
LL | fn test<T:Dot> (n:isize, i:isize, first:T, second:T) ->isize {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: the full name for the type has been written to '$TEST_BUILD_DIR/recursion.long-type-$LONG_TYPE_HASH.txt'
|
|
= note: consider using `--verbose` to print the full type name to the console
|
|
|
|
error: aborting due to 1 previous error
|
|
|