]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-40006.stderr
d1e995013cb93708fdf345f1c18a5c08fe6f458a
[rust.git] / src / test / ui / did_you_mean / issue-40006.stderr
1 error: missing `fn`, `type`, or `const` for associated-item declaration
2   --> $DIR/issue-40006.rs:1:13
3    |
4 LL |   impl dyn A {
5    |  _____________^
6 LL | |     Y
7    | |____^ missing `fn`, `type`, or `const`
8
9 error: missing `fn`, `type`, or `const` for associated-item declaration
10   --> $DIR/issue-40006.rs:7:10
11    |
12 LL |   trait X {
13    |  __________^
14 LL | |     X() {}
15    | |____^ missing `fn`, `type`, or `const`
16
17 error: missing `fn`, `type`, or `const` for associated-item declaration
18   --> $DIR/issue-40006.rs:15:10
19    |
20 LL |   trait A {
21    |  __________^
22 LL | |     X() {}
23    | |____^ missing `fn`, `type`, or `const`
24
25 error: expected `[`, found `#`
26   --> $DIR/issue-40006.rs:19:17
27    |
28 LL |     fn xxx() { ### }
29    |                 ^ expected `[`
30
31 error: missing `fn`, `type`, or `const` for associated-item declaration
32   --> $DIR/issue-40006.rs:21:10
33    |
34 LL |   trait C {
35    |  __________^
36 LL | |     L = M;
37    | |____^ missing `fn`, `type`, or `const`
38
39 error: missing `fn`, `type`, or `const` for associated-item declaration
40   --> $DIR/issue-40006.rs:24:10
41    |
42 LL |   trait D {
43    |  __________^
44 LL | |     Z = { 2 + 3 };
45    | |____^ missing `fn`, `type`, or `const`
46
47 error: expected one of `!` or `::`, found `(`
48   --> $DIR/issue-40006.rs:28:9
49    |
50 LL |     ::Y ();
51    |         ^ expected one of `!` or `::`
52
53 error: missing `fn`, `type`, or `const` for associated-item declaration
54   --> $DIR/issue-40006.rs:32:8
55    |
56 LL |     pub hello_method(&self) {
57    |        ^ missing `fn`, `type`, or `const`
58
59 error[E0599]: no method named `hello_method` found for type `S` in the current scope
60   --> $DIR/issue-40006.rs:38:7
61    |
62 LL | struct S;
63    | --------- method `hello_method` not found for this
64 ...
65 LL |     S.hello_method();
66    |       ^^^^^^^^^^^^ method not found in `S`
67
68 error: aborting due to 9 previous errors
69
70 For more information about this error, try `rustc --explain E0599`.