1 error: reached the recursion limit while instantiating `function::<Option<Option<Option<...>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
2 --> $DIR/infinite-instantiation.rs:22:9
4 LL | function(counter - 1, t.to_option());
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 note: `function` defined here
8 --> $DIR/infinite-instantiation.rs:20:1
10 LL | fn function<T:ToOpt + Clone>(counter: usize, t: T) {
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = note: the full type name has been written to '$TEST_BUILD_DIR/infinite/infinite-instantiation/infinite-instantiation.long-type.txt'
14 error: aborting due to previous error