summaryrefslogtreecommitdiffstats
path: root/tests/ui/infinite/infinite-instantiation.stderr
blob: 951e0f5870d7d084ba3c802c2570f4be32340587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error: reached the recursion limit while instantiating `function::<Option<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 type name has been written to '$TEST_BUILD_DIR/infinite/infinite-instantiation/infinite-instantiation.long-type.txt'

error: aborting due to previous error