about summary refs log tree commit diff
path: root/tests/ui/impl-trait/recursive-in-exhaustiveness.next.stderr
blob: 10e8dbf41ccbf01843aa7fec291214889d7235d2 (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 for `(_,)`
  --> $DIR/recursive-in-exhaustiveness.rs:19:9
   |
LL |     let (x,) = (build(x),);
   |         ^^^^
   |
help: consider giving this pattern a type, where the placeholders `_` are specified
   |
LL |     let (x,): (_,) = (build(x),);
   |             ++++++

error[E0282]: type annotations needed for `((_,),)`
  --> $DIR/recursive-in-exhaustiveness.rs:29:9
   |
LL |     let (x,) = (build2(x),);
   |         ^^^^
   |
help: consider giving this pattern a type, where the placeholders `_` are specified
   |
LL |     let (x,): ((_,),) = (build2(x),);
   |             +++++++++

error[E0282]: type annotations needed
  --> $DIR/recursive-in-exhaustiveness.rs:40:5
   |
LL |     build3(x)
   |     ^^^^^^^^^ cannot infer type

error: aborting due to 3 previous errors

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