mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
22 lines
1.9 KiB
Plaintext
22 lines
1.9 KiB
Plaintext
|
warning: function cannot return without recurring
|
||
|
--> $DIR/issue-8727.rs:14:1
|
||
|
|
|
||
|
LL | fn generic<T>() {
|
||
|
| ^^^^^^^^^^^^^^^ cannot return without recurring
|
||
|
LL | generic::<Option<T>>();
|
||
|
| ---------------------- recursive call site
|
||
|
|
|
||
|
= note: #[warn(unconditional_recursion)] on by default
|
||
|
= help: a `loop` may express intention better if this is on purpose
|
||
|
|
||
|
error: reached the recursion limit while instantiating `generic::<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<std::option::Option<i32>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>`
|
||
|
--> $DIR/issue-8727.rs:14:1
|
||
|
|
|
||
|
LL | / fn generic<T>() {
|
||
|
LL | | generic::<Option<T>>();
|
||
|
LL | | }
|
||
|
| |_^
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|