error[E0437]: type `bar` is not a member of trait `Foo`
- --> $DIR/impl-wrong-item-for-trait.rs:47:5
+ --> $DIR/impl-wrong-item-for-trait.rs:46:5
|
-47 | type bar = u64;
+46 | type bar = u64;
| ^^^^^^^^^^^^^^^ not a member of trait `Foo`
error[E0323]: item `bar` is an associated const, which doesn't match its trait `Foo`
- --> $DIR/impl-wrong-item-for-trait.rs:25:5
+ --> $DIR/impl-wrong-item-for-trait.rs:24:5
|
-16 | fn bar(&self);
+15 | fn bar(&self);
| -------------- item in trait
...
-25 | const bar: u64 = 1;
+24 | const bar: u64 = 1;
| ^^^^^^^^^^^^^^^^^^^ does not match trait
error[E0046]: not all trait items implemented, missing: `bar`
- --> $DIR/impl-wrong-item-for-trait.rs:22:1
+ --> $DIR/impl-wrong-item-for-trait.rs:21:1
|
-16 | fn bar(&self);
+15 | fn bar(&self);
| -------------- `bar` from trait
...
-22 | / impl Foo for FooConstForMethod {
-23 | | //~^ ERROR E0046
-24 | | //~| NOTE missing `bar` in implementation
-25 | | const bar: u64 = 1;
+21 | / impl Foo for FooConstForMethod {
+22 | | //~^ ERROR E0046
+23 | | //~| NOTE missing `bar` in implementation
+24 | | const bar: u64 = 1;
... |
-28 | | const MY_CONST: u32 = 1;
-29 | | }
+27 | | const MY_CONST: u32 = 1;
+28 | | }
| |_^ missing `bar` in implementation
error[E0324]: item `MY_CONST` is an associated method, which doesn't match its trait `Foo`
- --> $DIR/impl-wrong-item-for-trait.rs:37:5
+ --> $DIR/impl-wrong-item-for-trait.rs:36:5
|
-17 | const MY_CONST: u32;
+16 | const MY_CONST: u32;
| -------------------- item in trait
...
-37 | fn MY_CONST() {}
+36 | fn MY_CONST() {}
| ^^^^^^^^^^^^^^^^ does not match trait
error[E0046]: not all trait items implemented, missing: `MY_CONST`
- --> $DIR/impl-wrong-item-for-trait.rs:33:1
+ --> $DIR/impl-wrong-item-for-trait.rs:32:1
|
-17 | const MY_CONST: u32;
+16 | const MY_CONST: u32;
| -------------------- `MY_CONST` from trait
...
-33 | / impl Foo for FooMethodForConst {
-34 | | //~^ ERROR E0046
-35 | | //~| NOTE missing `MY_CONST` in implementation
-36 | | fn bar(&self) {}
+32 | / impl Foo for FooMethodForConst {
+33 | | //~^ ERROR E0046
+34 | | //~| NOTE missing `MY_CONST` in implementation
+35 | | fn bar(&self) {}
... |
-39 | | //~| NOTE does not match trait
-40 | | }
+38 | | //~| NOTE does not match trait
+39 | | }
| |_^ missing `MY_CONST` in implementation
error[E0325]: item `bar` is an associated type, which doesn't match its trait `Foo`
- --> $DIR/impl-wrong-item-for-trait.rs:47:5
+ --> $DIR/impl-wrong-item-for-trait.rs:46:5
|
-16 | fn bar(&self);
+15 | fn bar(&self);
| -------------- item in trait
...
-47 | type bar = u64;
+46 | type bar = u64;
| ^^^^^^^^^^^^^^^ does not match trait
error[E0046]: not all trait items implemented, missing: `bar`
- --> $DIR/impl-wrong-item-for-trait.rs:44:1
+ --> $DIR/impl-wrong-item-for-trait.rs:43:1
|
-16 | fn bar(&self);
+15 | fn bar(&self);
| -------------- `bar` from trait
...
-44 | / impl Foo for FooTypeForMethod {
-45 | | //~^ ERROR E0046
-46 | | //~| NOTE missing `bar` in implementation
-47 | | type bar = u64;
+43 | / impl Foo for FooTypeForMethod {
+44 | | //~^ ERROR E0046
+45 | | //~| NOTE missing `bar` in implementation
+46 | | type bar = u64;
... |
-50 | | const MY_CONST: u32 = 1;
-51 | | }
+49 | | const MY_CONST: u32 = 1;
+50 | | }
| |_^ missing `bar` in implementation
error[E0046]: not all trait items implemented, missing: `fmt`
- --> $DIR/impl-wrong-item-for-trait.rs:53:1
+ --> $DIR/impl-wrong-item-for-trait.rs:52:1
|
-53 | / impl Debug for FooTypeForMethod {
-54 | | }
+52 | / impl Debug for FooTypeForMethod {
+53 | | }
| |_^ missing `fmt` in implementation
|
= note: `fmt` from trait: `fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`