E0642.stderr 961 字节
Newer Older
V
varkor 已提交
1
error[E0642]: patterns aren't allowed in methods without bodies
2
  --> $DIR/E0642.rs:9:12
3
   |
V
Vadim Petrochenkov 已提交
4
LL |     fn foo((x, y): (i32, i32));
5
   |            ^^^^^^
6
   |
V
varkor 已提交
7
help: give this argument a name or use an underscore to ignore it
8
   |
V
Vadim Petrochenkov 已提交
9
LL |     fn foo(_: (i32, i32));
10 11
   |            ^

V
varkor 已提交
12
error[E0642]: patterns aren't allowed in methods without bodies
13
  --> $DIR/E0642.rs:11:12
14
   |
V
Vadim Petrochenkov 已提交
15
LL |     fn bar((x, y): (i32, i32)) {}
16
   |            ^^^^^^
17
   |
V
varkor 已提交
18
help: give this argument a name or use an underscore to ignore it
19
   |
V
Vadim Petrochenkov 已提交
20
LL |     fn bar(_: (i32, i32)) {}
21
   |            ^
22

23
error[E0642]: patterns aren't allowed in methods without bodies
24
  --> $DIR/E0642.rs:13:15
25
   |
V
Vadim Petrochenkov 已提交
26
LL |     fn method(S { .. }: S) {}
27
   |               ^^^^^^^^
28
   |
29 30
help: give this argument a name or use an underscore to ignore it
   |
V
Vadim Petrochenkov 已提交
31
LL |     fn method(_: S) {}
32 33 34
   |               ^

error: aborting due to 3 previous errors
35

V
varkor 已提交
36
For more information about this error, try `rustc --explain E0642`.