]> git.lizzy.rs Git - rust.git/blob - src/test/ui/E0642.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / E0642.stderr
1 error[E0642]: patterns aren't allowed in methods without bodies
2   --> $DIR/E0642.rs:5:12
3    |
4 LL |     fn foo((x, y): (i32, i32)); //~ ERROR patterns aren't allowed in methods without bodies
5    |            ^^^^^^
6 help: give this argument a name or use an underscore to ignore it
7    |
8 LL |     fn foo(_: (i32, i32)); //~ ERROR patterns aren't allowed in methods without bodies
9    |            ^
10
11 error[E0642]: patterns aren't allowed in methods without bodies
12   --> $DIR/E0642.rs:7:12
13    |
14 LL |     fn bar((x, y): (i32, i32)) {} //~ ERROR patterns aren't allowed in methods without bodies
15    |            ^^^^^^
16 help: give this argument a name or use an underscore to ignore it
17    |
18 LL |     fn bar(_: (i32, i32)) {} //~ ERROR patterns aren't allowed in methods without bodies
19    |            ^
20
21 error[E0642]: patterns aren't allowed in methods without bodies
22   --> $DIR/E0642.rs:9:15
23    |
24 LL |     fn method(S { .. }: S) {} //~ ERROR patterns aren't allowed in methods without bodies
25    |               ^^^^^^^^
26 help: give this argument a name or use an underscore to ignore it
27    |
28 LL |     fn method(_: S) {} //~ ERROR patterns aren't allowed in methods without bodies
29    |               ^
30
31 error: aborting due to 3 previous errors
32
33 For more information about this error, try `rustc --explain E0642`.