]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-40006.stderr
report the total number of errors on compilation failure
[rust.git] / src / test / ui / did_you_mean / issue-40006.stderr
1 error: missing `fn`, `type`, or `const` for impl-item declaration
2   --> $DIR/issue-40006.rs:11:9
3    |
4 11 |   impl X {
5    |  _________^
6 12 | |     Y
7    | |____^ missing `fn`, `type`, or `const`
8
9 error: missing `fn`, `type`, or `const` for trait-item declaration
10   --> $DIR/issue-40006.rs:17:10
11    |
12 17 |   trait X {
13    |  __________^
14 18 | |     X() {}
15    | |____^ missing `fn`, `type`, or `const`
16
17 error: expected `[`, found `#`
18   --> $DIR/issue-40006.rs:19:17
19    |
20 19 |     fn xxx() { ### }
21    |                 ^
22
23 error: missing `fn`, `type`, or `const` for trait-item declaration
24   --> $DIR/issue-40006.rs:19:21
25    |
26 19 |       fn xxx() { ### }
27    |  _____________________^
28 20 | |     L = M;
29    | |____^ missing `fn`, `type`, or `const`
30
31 error: missing `fn`, `type`, or `const` for trait-item declaration
32   --> $DIR/issue-40006.rs:20:11
33    |
34 20 |       L = M;
35    |  ___________^
36 21 | |     Z = { 2 + 3 };
37    | |____^ missing `fn`, `type`, or `const`
38
39 error: expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;`
40   --> $DIR/issue-40006.rs:21:18
41    |
42 21 |     Z = { 2 + 3 };
43    |                  ^ expected one of `const`, `extern`, `fn`, `type`, `unsafe`, or `}` here
44
45 error: expected one of `!` or `::`, found `(`
46   --> $DIR/issue-40006.rs:22:9
47    |
48 22 |     ::Y ();
49    |        -^ unexpected token
50    |        |
51    |        expected one of `!` or `::` here
52
53 error: missing `fn`, `type`, or `const` for impl-item declaration
54   --> $DIR/issue-40006.rs:26:8
55    |
56 26 |     pub hello_method(&self) {
57    |        ^ missing `fn`, `type`, or `const`
58
59 error[E0038]: the trait `X` cannot be made into an object
60   --> $DIR/issue-40006.rs:11:6
61    |
62 11 | impl X {
63    |      ^ the trait `X` cannot be made into an object
64    |
65    = note: method `xxx` has no receiver
66
67 error: aborting due to 9 previous errors
68