]> git.proxmox.com Git - rustc.git/blame - src/test/ui/did_you_mean/issue-40006.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / did_you_mean / issue-40006.stderr
CommitLineData
cc61c64b 1error: missing `fn`, `type`, or `const` for impl-item declaration
0731742a 2 --> $DIR/issue-40006.rs:1:9
cc61c64b 3 |
532ac7d7 4LL | impl X {
cc61c64b 5 | _________^
532ac7d7 6LL | |
0531ce1d 7LL | | Y
cc61c64b
XL
8 | |____^ missing `fn`, `type`, or `const`
9
10error: missing `fn`, `type`, or `const` for trait-item declaration
0731742a 11 --> $DIR/issue-40006.rs:8:10
cc61c64b 12 |
532ac7d7 13LL | trait X {
cc61c64b 14 | __________^
0531ce1d 15LL | | X() {}
cc61c64b
XL
16 | |____^ missing `fn`, `type`, or `const`
17
18error: expected `[`, found `#`
0731742a 19 --> $DIR/issue-40006.rs:10:17
cc61c64b 20 |
532ac7d7 21LL | fn xxx() { ### }
0531ce1d 22 | ^ expected `[`
cc61c64b
XL
23
24error: missing `fn`, `type`, or `const` for trait-item declaration
0731742a 25 --> $DIR/issue-40006.rs:10:21
cc61c64b 26 |
532ac7d7 27LL | fn xxx() { ### }
cc61c64b 28 | _____________________^
532ac7d7
XL
29LL | |
30LL | | L = M;
cc61c64b
XL
31 | |____^ missing `fn`, `type`, or `const`
32
33error: missing `fn`, `type`, or `const` for trait-item declaration
0731742a 34 --> $DIR/issue-40006.rs:12:11
cc61c64b 35 |
532ac7d7 36LL | L = M;
cc61c64b 37 | ___________^
532ac7d7 38LL | | Z = { 2 + 3 };
cc61c64b
XL
39 | |____^ missing `fn`, `type`, or `const`
40
8faf50e0 41error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;`
0731742a 42 --> $DIR/issue-40006.rs:13:18
cc61c64b 43 |
532ac7d7 44LL | Z = { 2 + 3 };
8faf50e0 45 | ^ expected one of 7 possible tokens here
cc61c64b
XL
46
47error: expected one of `!` or `::`, found `(`
0731742a 48 --> $DIR/issue-40006.rs:14:9
cc61c64b 49 |
532ac7d7 50LL | ::Y ();
ff7c6d11 51 | ^ expected one of `!` or `::` here
cc61c64b
XL
52
53error: missing `fn`, `type`, or `const` for impl-item declaration
0731742a 54 --> $DIR/issue-40006.rs:18:8
cc61c64b 55 |
532ac7d7 56LL | pub hello_method(&self) {
cc61c64b
XL
57 | ^ missing `fn`, `type`, or `const`
58
59error[E0038]: the trait `X` cannot be made into an object
0731742a 60 --> $DIR/issue-40006.rs:1:6
cc61c64b 61 |
532ac7d7 62LL | impl X {
cc61c64b
XL
63 | ^ the trait `X` cannot be made into an object
64 |
65 = note: method `xxx` has no receiver
66
041b39d2 67error: aborting due to 9 previous errors
cc61c64b 68
0531ce1d 69For more information about this error, try `rustc --explain E0038`.