rust/tests/ui/hygiene/assoc_item_ctxt.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.2 KiB
Plaintext
Raw Normal View History

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