mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
16 lines
636 B
Plaintext
16 lines
636 B
Plaintext
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 1 previous error
|
|
|