rust/src/test/ui/hygiene/assoc_item_ctxt.stderr

30 lines
1.0 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`
2018-12-25 15:56:47 +00:00
--> $DIR/assoc_item_ctxt.rs:35:13
2018-04-07 14:28:31 +00:00
|
2019-03-09 12:03:44 +00:00
LL | fn method() {}
2018-04-07 14:28:31 +00:00
| ^^^^^^^^^^^^^^ not a member of trait `Tr`
...
LL | mac_trait_impl!();
| ------------------ 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`
2018-12-25 15:56:47 +00:00
--> $DIR/assoc_item_ctxt.rs:34: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!();
| ------------------ 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`.