about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-70388-without-witness.stderr
blob: ed78377607d2153795b112800f7a93d405687647 (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
error: unexpected `...`
  --> $DIR/issue-70388-without-witness.rs:7:13
   |
LL |     let Foo(...) = Foo(0);
   |             ^^^ not a valid pattern
   |
help: for a rest pattern, use `..` instead of `...`
   |
LL -     let Foo(...) = Foo(0);
LL +     let Foo(..) = Foo(0);
   |

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

error: aborting due to 2 previous errors