summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-70388-recover-dotdotdot-rest-pat.stderr
blob: 4961e8fc0492df4a496e86a42ffaa5dca2c8d874 (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
error: unexpected `...`
  --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:4:13
   |
LL |     let Foo(...) = Foo(0);
   |             ^^^
   |             |
   |             not a valid pattern
   |             help: for a rest pattern, use `..` instead of `...`

error: unexpected `...`
  --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:5:13
   |
LL |     let [_, ..., _] = [0, 1];
   |             ^^^
   |             |
   |             not a valid pattern
   |             help: for a rest pattern, use `..` instead of `...`

error[E0308]: mismatched types
  --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:6:33
   |
LL |     let _recovery_witness: () = 0;
   |                            --   ^ expected `()`, found integer
   |                            |
   |                            expected due to this

error: aborting due to 3 previous errors

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