2022-11-15 17:38:39 -08:00
|
|
|
error: reached the recursion limit while instantiating `function::<Option<Option<Option<Option<Option<...>>>>>>`
|
2020-09-16 03:45:58 +01:00
|
|
|
--> $DIR/infinite-instantiation.rs:22:9
|
2020-06-21 22:32:35 -04:00
|
|
|
|
|
|
|
|
LL | function(counter - 1, t.to_option());
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: `function` defined here
|
2020-09-16 03:45:58 +01:00
|
|
|
--> $DIR/infinite-instantiation.rs:20:1
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-08-12 17:02:14 -04:00
|
|
|
LL | fn function<T:ToOpt + Clone>(counter: usize, t: T) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-09-16 03:45:58 +01:00
|
|
|
= note: the full type name has been written to '$TEST_BUILD_DIR/infinite/infinite-instantiation/infinite-instantiation.long-type.txt'
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|