]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/local-type-mix.stderr
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / closures / local-type-mix.stderr
1 error[E0573]: expected type, found local variable `x`
2   --> $DIR/local-type-mix.rs:7:17
3    |
4 LL |     let _ = |x: x| x;
5    |                 ^ not a type
6
7 error[E0573]: expected type, found local variable `x`
8   --> $DIR/local-type-mix.rs:8:26
9    |
10 LL |     let _ = |x: bool| -> x { x };
11    |                          ^ not a type
12
13 error[E0573]: expected type, found local variable `x`
14   --> $DIR/local-type-mix.rs:9:28
15    |
16 LL |     let _ = async move |x: x| x;
17    |                            ^ not a type
18
19 error[E0573]: expected type, found local variable `x`
20   --> $DIR/local-type-mix.rs:10:37
21    |
22 LL |     let _ = async move |x: bool| -> x { x };
23    |                                     ^ not a type
24
25 error[E0573]: expected type, found local variable `x`
26   --> $DIR/local-type-mix.rs:13:11
27    |
28 LL | fn foo(x: x) {}
29    |           ^ not a type
30
31 error[E0573]: expected type, found local variable `x`
32   --> $DIR/local-type-mix.rs:14:24
33    |
34 LL | fn foo_ret(x: bool) -> x {}
35    |                        ^ not a type
36
37 error[E0573]: expected type, found local variable `x`
38   --> $DIR/local-type-mix.rs:16:23
39    |
40 LL | async fn async_foo(x: x) {}
41    |                       ^ not a type
42
43 error[E0573]: expected type, found local variable `x`
44   --> $DIR/local-type-mix.rs:17:36
45    |
46 LL | async fn async_foo_ret(x: bool) -> x {}
47    |                                    ^ not a type
48
49 error: aborting due to 8 previous errors
50
51 For more information about this error, try `rustc --explain E0573`.