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