fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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