summaryrefslogtreecommitdiffstats
path: root/tests/ui/hygiene/assoc_item_ctxt.stderr
blob: effa9e8d65592d8d9ef21ca7aff123bc7c73c2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
error[E0407]: method `method` is not a member of trait `Tr`
  --> $DIR/assoc_item_ctxt.rs:33:13
   |
LL |             fn method() {}
   |             ^^^------^^^^^
   |             |  |
   |             |  help: there is an associated function with a similar name: `method`
   |             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)

error[E0046]: not all trait items implemented, missing: `method`
  --> $DIR/assoc_item_ctxt.rs:32:9
   |
LL |         fn method();
   |         ------------ `method` from trait
...
LL |         impl Tr for u8 {
   |         ^^^^^^^^^^^^^^ 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)

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0046, E0407.
For more information about an error, try `rustc --explain E0046`.