summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/hidden-type-is-opaque-2.stderr
blob: 39bf22142326a212a8e70d7b91e72c956d8e366f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
error[E0282]: type annotations needed
  --> $DIR/hidden-type-is-opaque-2.rs:8:17
   |
LL |     Thunk::new(|mut cont| {
   |                 ^^^^^^^^
LL |
LL |         cont.reify_as();
   |         ---- type must be known at this point
   |
help: consider giving this closure parameter an explicit type
   |
LL |     Thunk::new(|mut cont: /* Type */| {
   |                         ++++++++++++

error[E0282]: type annotations needed
  --> $DIR/hidden-type-is-opaque-2.rs:18:17
   |
LL |     Thunk::new(|mut cont| {
   |                 ^^^^^^^^
LL |
LL |         cont.reify_as();
   |         ---- type must be known at this point
   |
help: consider giving this closure parameter an explicit type
   |
LL |     Thunk::new(|mut cont: /* Type */| {
   |                         ++++++++++++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0282`.