2017-04-13 22:37:05 +03:00
|
|
|
error: missing `fn`, `type`, or `const` for impl-item declaration
|
2019-05-28 14:46:13 -04:00
|
|
|
--> $DIR/issue-40006.rs:1:13
|
2017-03-24 23:00:21 -07:00
|
|
|
|
|
2019-10-25 18:30:02 -07:00
|
|
|
LL | impl dyn A {
|
2019-05-28 14:46:13 -04:00
|
|
|
| _____________^
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | | Y
|
2017-04-14 16:38:10 -07:00
|
|
|
| |____^ missing `fn`, `type`, or `const`
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
|
|
error: missing `fn`, `type`, or `const` for trait-item declaration
|
2019-10-25 18:30:02 -07:00
|
|
|
--> $DIR/issue-40006.rs:7:10
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | trait X {
|
2017-04-14 16:38:10 -07:00
|
|
|
| __________^
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | | X() {}
|
2017-04-14 16:38:10 -07:00
|
|
|
| |____^ missing `fn`, `type`, or `const`
|
2017-04-13 22:37:05 +03:00
|
|
|
|
2019-10-25 18:30:02 -07:00
|
|
|
error: missing `fn`, `type`, or `const` for trait-item declaration
|
|
|
|
--> $DIR/issue-40006.rs:15:10
|
|
|
|
|
|
|
|
|
LL | trait A {
|
|
|
|
| __________^
|
|
|
|
LL | | X() {}
|
|
|
|
| |____^ missing `fn`, `type`, or `const`
|
|
|
|
|
2017-04-13 22:37:05 +03:00
|
|
|
error: expected `[`, found `#`
|
2019-10-25 18:30:02 -07:00
|
|
|
--> $DIR/issue-40006.rs:19:17
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | fn xxx() { ### }
|
2018-02-18 16:59:33 -08:00
|
|
|
| ^ expected `[`
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
|
|
error: missing `fn`, `type`, or `const` for trait-item declaration
|
2019-10-25 18:30:02 -07:00
|
|
|
--> $DIR/issue-40006.rs:21:10
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
2019-10-25 18:30:02 -07:00
|
|
|
LL | trait C {
|
|
|
|
| __________^
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | | L = M;
|
2017-04-14 16:38:10 -07:00
|
|
|
| |____^ missing `fn`, `type`, or `const`
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
|
|
error: missing `fn`, `type`, or `const` for trait-item declaration
|
2019-10-25 18:30:02 -07:00
|
|
|
--> $DIR/issue-40006.rs:24:10
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
2019-10-25 18:30:02 -07:00
|
|
|
LL | trait D {
|
|
|
|
| __________^
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | | Z = { 2 + 3 };
|
2017-04-14 16:38:10 -07:00
|
|
|
| |____^ missing `fn`, `type`, or `const`
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
|
|
error: expected one of `!` or `::`, found `(`
|
2019-10-25 18:30:02 -07:00
|
|
|
--> $DIR/issue-40006.rs:28:9
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | ::Y ();
|
2017-11-29 13:28:47 -08:00
|
|
|
| ^ expected one of `!` or `::` here
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
|
|
error: missing `fn`, `type`, or `const` for impl-item declaration
|
2019-10-25 18:30:02 -07:00
|
|
|
--> $DIR/issue-40006.rs:32:8
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | pub hello_method(&self) {
|
2017-04-13 22:37:05 +03:00
|
|
|
| ^ missing `fn`, `type`, or `const`
|
|
|
|
|
2019-10-25 18:30:02 -07:00
|
|
|
error[E0599]: no method named `hello_method` found for type `S` in the current scope
|
|
|
|
--> $DIR/issue-40006.rs:38:7
|
2017-04-13 22:37:05 +03:00
|
|
|
|
|
2019-10-25 18:30:02 -07:00
|
|
|
LL | struct S;
|
|
|
|
| --------- method `hello_method` not found for this
|
2019-09-02 20:22:22 -07:00
|
|
|
...
|
2019-10-25 18:30:02 -07:00
|
|
|
LL | S.hello_method();
|
|
|
|
| ^^^^^^^^^^^^ method not found in `S`
|
2017-03-24 23:00:21 -07:00
|
|
|
|
2017-07-02 16:09:09 +03:00
|
|
|
error: aborting due to 9 previous errors
|
2017-03-24 23:00:21 -07:00
|
|
|
|
2019-10-25 18:30:02 -07:00
|
|
|
For more information about this error, try `rustc --explain E0599`.
|