]> git.lizzy.rs Git - rust.git/blob - tests/ui/infinite/infinite-instantiation.polonius.stderr
Auto merge of #106812 - oli-obk:output_filenames, r=petrochenkov
[rust.git] / tests / ui / infinite / infinite-instantiation.polonius.stderr
1 error: reached the recursion limit while instantiating `function::<Option<Option<Option<...>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
2   --> $DIR/infinite-instantiation.rs:22:9
3    |
4 LL |         function(counter - 1, t.to_option());
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7 note: `function` defined here
8   --> $DIR/infinite-instantiation.rs:20:1
9    |
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.polonius/infinite-instantiation.long-type.txt'
13
14 error: aborting due to previous error
15