]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-40006.stderr
Auto merge of #64096 - GuillaumeGomez:theme-regex-fix, r=Mark-Simulacrum
[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:1:13
3    |
4 LL |   impl dyn X {
5    |  _____________^
6 LL | |
7 LL | |     Y
8    | |____^ missing `fn`, `type`, or `const`
9
10 error: missing `fn`, `type`, or `const` for trait-item declaration
11   --> $DIR/issue-40006.rs:8:10
12    |
13 LL |   trait X {
14    |  __________^
15 LL | |     X() {}
16    | |____^ missing `fn`, `type`, or `const`
17
18 error: expected `[`, found `#`
19   --> $DIR/issue-40006.rs:10:17
20    |
21 LL |     fn xxx() { ### }
22    |                 ^ expected `[`
23
24 error: missing `fn`, `type`, or `const` for trait-item declaration
25   --> $DIR/issue-40006.rs:10:21
26    |
27 LL |       fn xxx() { ### }
28    |  _____________________^
29 LL | |
30 LL | |     L = M;
31    | |____^ missing `fn`, `type`, or `const`
32
33 error: missing `fn`, `type`, or `const` for trait-item declaration
34   --> $DIR/issue-40006.rs:12:11
35    |
36 LL |       L = M;
37    |  ___________^
38 LL | |     Z = { 2 + 3 };
39    | |____^ missing `fn`, `type`, or `const`
40
41 error: expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;`
42   --> $DIR/issue-40006.rs:13:18
43    |
44 LL |     Z = { 2 + 3 };
45    |                  ^ expected one of 7 possible tokens here
46
47 error: expected one of `!` or `::`, found `(`
48   --> $DIR/issue-40006.rs:14:9
49    |
50 LL |     ::Y ();
51    |         ^ expected one of `!` or `::` here
52
53 error: missing `fn`, `type`, or `const` for impl-item declaration
54   --> $DIR/issue-40006.rs:18:8
55    |
56 LL |     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:1:6
61    |
62 LL | impl dyn X {
63    |      ^^^^^ the trait `X` cannot be made into an object
64 ...
65 LL |     fn xxx() { ### }
66    |        --- associated function `xxx` has no `self` parameter
67
68 error: aborting due to 9 previous errors
69
70 For more information about this error, try `rustc --explain E0038`.