1 error[E0437]: type `bar` is not a member of trait `Foo`
2 --> $DIR/impl-wrong-item-for-trait.rs:46:5
5 | ^^^^^^^^^^^^^^^ not a member of trait `Foo`
7 error[E0323]: item `bar` is an associated const, which doesn't match its trait `Foo`
8 --> $DIR/impl-wrong-item-for-trait.rs:24:5
11 | -------------- item in trait
13 24 | const bar: u64 = 1;
14 | ^^^^^^^^^^^^^^^^^^^ does not match trait
16 error[E0046]: not all trait items implemented, missing: `bar`
17 --> $DIR/impl-wrong-item-for-trait.rs:21:1
20 | -------------- `bar` from trait
22 21 | / impl Foo for FooConstForMethod {
23 22 | | //~^ ERROR E0046
24 23 | | //~| NOTE missing `bar` in implementation
25 24 | | const bar: u64 = 1;
27 27 | | const MY_CONST: u32 = 1;
29 | |_^ missing `bar` in implementation
31 error[E0324]: item `MY_CONST` is an associated method, which doesn't match its trait `Foo`
32 --> $DIR/impl-wrong-item-for-trait.rs:36:5
34 16 | const MY_CONST: u32;
35 | -------------------- item in trait
38 | ^^^^^^^^^^^^^^^^ does not match trait
40 error[E0046]: not all trait items implemented, missing: `MY_CONST`
41 --> $DIR/impl-wrong-item-for-trait.rs:32:1
43 16 | const MY_CONST: u32;
44 | -------------------- `MY_CONST` from trait
46 32 | / impl Foo for FooMethodForConst {
47 33 | | //~^ ERROR E0046
48 34 | | //~| NOTE missing `MY_CONST` in implementation
49 35 | | fn bar(&self) {}
51 38 | | //~| NOTE does not match trait
53 | |_^ missing `MY_CONST` in implementation
55 error[E0325]: item `bar` is an associated type, which doesn't match its trait `Foo`
56 --> $DIR/impl-wrong-item-for-trait.rs:46:5
59 | -------------- item in trait
62 | ^^^^^^^^^^^^^^^ does not match trait
64 error[E0046]: not all trait items implemented, missing: `bar`
65 --> $DIR/impl-wrong-item-for-trait.rs:43:1
68 | -------------- `bar` from trait
70 43 | / impl Foo for FooTypeForMethod {
71 44 | | //~^ ERROR E0046
72 45 | | //~| NOTE missing `bar` in implementation
73 46 | | type bar = u64;
75 49 | | const MY_CONST: u32 = 1;
77 | |_^ missing `bar` in implementation
79 error[E0046]: not all trait items implemented, missing: `fmt`
80 --> $DIR/impl-wrong-item-for-trait.rs:52:1
82 52 | / impl Debug for FooTypeForMethod {
84 | |_^ missing `fmt` in implementation
86 = note: `fmt` from trait: `fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`
88 error: aborting due to 8 previous errors