]> git.lizzy.rs Git - rust.git/blob - src/test/ui/hygiene/assoc_item_ctxt.stderr
Rollup merge of #90202 - matthewjasper:xcrate-hygiene, r=petrochenkov
[rust.git] / src / test / ui / hygiene / assoc_item_ctxt.stderr
1 error[E0407]: method `method` is not a member of trait `Tr`
2   --> $DIR/assoc_item_ctxt.rs:35:13
3    |
4 LL |             fn method() {}
5    |             ^^^------^^^^^
6    |             |  |
7    |             |  help: there is an associated function with a similar name: `method`
8    |             not a member of trait `Tr`
9 ...
10 LL |     mac_trait_impl!();
11    |     ----------------- in this macro invocation
12    |
13    = note: this error originates in the macro `mac_trait_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error[E0046]: not all trait items implemented, missing: `method`
16   --> $DIR/assoc_item_ctxt.rs:34:9
17    |
18 LL |         fn method();
19    |         ------------ `method` from trait
20 ...
21 LL |         impl Tr for u8 {
22    |         ^^^^^^^^^^^^^^ missing `method` in implementation
23 ...
24 LL |     mac_trait_impl!();
25    |     ----------------- in this macro invocation
26    |
27    = note: this error originates in the macro `mac_trait_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error: aborting due to 2 previous errors
30
31 Some errors have detailed explanations: E0046, E0407.
32 For more information about an error, try `rustc --explain E0046`.