2018-04-07 17:28:31 +03:00
|
|
|
error[E0407]: method `method` is not a member of trait `Tr`
|
2023-03-08 10:13:02 +01:00
|
|
|
--> $DIR/assoc_item_ctxt.rs:33:13
|
2018-04-07 17:28:31 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | fn method() {}
|
2021-09-26 00:53:37 +09:00
|
|
|
| ^^^------^^^^^
|
|
|
|
| | |
|
|
|
|
| | help: there is an associated function with a similar name: `method`
|
|
|
|
| not a member of trait `Tr`
|
2018-04-07 17:28:31 +03:00
|
|
|
...
|
|
|
|
LL | mac_trait_impl!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ----------------- in this macro invocation
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `mac_trait_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 17:28:31 +03:00
|
|
|
|
|
|
|
error[E0046]: not all trait items implemented, missing: `method`
|
2023-03-08 10:13:02 +01:00
|
|
|
--> $DIR/assoc_item_ctxt.rs:32:9
|
2018-04-07 17:28:31 +03:00
|
|
|
|
|
|
|
|
LL | fn method();
|
|
|
|
| ------------ `method` from trait
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | impl Tr for u8 {
|
2018-04-07 17:28:31 +03:00
|
|
|
| ^^^^^^^^^^^^^^ missing `method` in implementation
|
|
|
|
...
|
|
|
|
LL | mac_trait_impl!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ----------------- in this macro invocation
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `mac_trait_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-04-07 17:28:31 +03:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0046, E0407.
|
2018-04-07 17:28:31 +03:00
|
|
|
For more information about an error, try `rustc --explain E0046`.
|