about summary refs log tree commit diff
path: root/tests/ui/infinite/infinite-instantiation.stderr
blob: 321858444129058733407fe5bb3fe1baa55c3992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: reached the recursion limit while instantiating `function::<Option<Option<Option<Option<...>>>>>`
  --> $DIR/infinite-instantiation.rs:22:9
   |
LL |         function(counter - 1, t.to_option());
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
note: `function` defined here
  --> $DIR/infinite-instantiation.rs:20:1
   |
LL | fn function<T:ToOpt + Clone>(counter: usize, t: T) {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: the full name for the type has been written to '$TEST_BUILD_DIR/infinite-instantiation.long-type-$LONG_TYPE_HASH.txt'
   = note: consider using `--verbose` to print the full type name to the console

error: aborting due to 1 previous error