fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
655 B15 linesraw
1error: reached the recursion limit while instantiating `function::<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.polonius/infinite-instantiation.long-type.txt'
13
14error: aborting due to previous error
15