fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: reached the recursion limit while instantiating `function::<Option<Option<Option<Option<Option<...>>>>>>` 2 --> $DIR/infinite-instantiation.rs:22:9 3 | 4LL | function(counter - 1, t.to_option()); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7note: `function` defined here 8 --> $DIR/infinite-instantiation.rs:20:1 9 | 10LL | 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' 13 14error: aborting due to previous error 15