about summary refs log tree commit diff
path: root/tests/ui/impl-trait/transmute/in-defining-scope.stderr
blob: 015a39d6670ec9836d36ea7f4ef10b286da3481c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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