fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
935 B29 linesraw
1error: unexpected `...`
2  --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:4:13
3   |
4LL |     let Foo(...) = Foo(0);
5   |             ^^^
6   |             |
7   |             not a valid pattern
8   |             help: for a rest pattern, use `..` instead of `...`
9
10error: unexpected `...`
11  --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:5:13
12   |
13LL |     let [_, ..., _] = [0, 1];
14   |             ^^^
15   |             |
16   |             not a valid pattern
17   |             help: for a rest pattern, use `..` instead of `...`
18
19error[E0308]: mismatched types
20  --> $DIR/issue-70388-recover-dotdotdot-rest-pat.rs:6:33
21   |
22LL |     let _recovery_witness: () = 0;
23   |                            --   ^ expected `()`, found integer
24   |                            |
25   |                            expected due to this
26
27error: aborting due to 3 previous errors
28
29For more information about this error, try `rustc --explain E0308`.