mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 23:17:42 +00:00
15 lines
448 B
Plaintext
15 lines
448 B
Plaintext
warning: function cannot return without recursing
|
|
--> $DIR/in-defining-scope.rs:8:1
|
|
|
|
|
LL | fn foo() -> impl Sized {
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing
|
|
...
|
|
LL | transmute::<_, u8>(foo());
|
|
| ----- recursive call site
|
|
|
|
|
= help: a `loop` may express intention better if this is on purpose
|
|
= note: `#[warn(unconditional_recursion)]` on by default
|
|
|
|
warning: 1 warning emitted
|
|
|