1 error[E0573]: expected type, found local variable `x`
2 --> $DIR/local-type-mix.rs:7:17
7 error[E0573]: expected type, found local variable `x`
8 --> $DIR/local-type-mix.rs:8:26
10 LL | let _ = |x: bool| -> x { x };
13 error[E0573]: expected type, found local variable `x`
14 --> $DIR/local-type-mix.rs:9:28
16 LL | let _ = async move |x: x| x;
19 error[E0573]: expected type, found local variable `x`
20 --> $DIR/local-type-mix.rs:10:37
22 LL | let _ = async move |x: bool| -> x { x };
25 error[E0573]: expected type, found local variable `x`
26 --> $DIR/local-type-mix.rs:13:11
31 error[E0573]: expected type, found local variable `x`
32 --> $DIR/local-type-mix.rs:14:24
34 LL | fn foo_ret(x: bool) -> x {}
37 error[E0573]: expected type, found local variable `x`
38 --> $DIR/local-type-mix.rs:16:23
40 LL | async fn async_foo(x: x) {}
43 error[E0573]: expected type, found local variable `x`
44 --> $DIR/local-type-mix.rs:17:36
46 LL | async fn async_foo_ret(x: bool) -> x {}
49 error: aborting due to 8 previous errors
51 For more information about this error, try `rustc --explain E0573`.