2016-12-01 01:35:25 +03:00
|
|
|
error[E0437]: type `bar` is not a member of trait `Foo`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:41:5
|
2016-12-01 01:35:25 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | type bar = u64;
|
2016-12-01 01:35:25 +03:00
|
|
|
| ^^^^^^^^^^^^^^^ not a member of trait `Foo`
|
|
|
|
|
2016-11-28 17:53:59 -08:00
|
|
|
error[E0323]: item `bar` is an associated const, which doesn't match its trait `Foo`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:23:5
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn bar(&self);
|
2016-10-23 18:54:31 -07:00
|
|
|
| -------------- item in trait
|
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const bar: u64 = 1;
|
2016-10-23 18:54:31 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ does not match trait
|
|
|
|
|
|
|
|
error[E0046]: not all trait items implemented, missing: `bar`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:21:1
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn bar(&self);
|
2017-12-19 14:41:03 -08:00
|
|
|
| -------------- `bar` from trait
|
2016-10-23 18:54:31 -07:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl Foo for FooConstForMethod {
|
2017-12-19 14:41:03 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `bar` in implementation
|
2016-10-23 18:54:31 -07:00
|
|
|
|
2016-11-28 17:53:59 -08:00
|
|
|
error[E0324]: item `MY_CONST` is an associated method, which doesn't match its trait `Foo`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:33:5
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const MY_CONST: u32;
|
2016-10-23 18:54:31 -07:00
|
|
|
| -------------------- item in trait
|
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn MY_CONST() {}
|
2016-10-23 18:54:31 -07:00
|
|
|
| ^^^^^^^^^^^^^^^^ does not match trait
|
|
|
|
|
|
|
|
error[E0046]: not all trait items implemented, missing: `MY_CONST`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:30:1
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | const MY_CONST: u32;
|
2017-12-19 14:41:03 -08:00
|
|
|
| -------------------- `MY_CONST` from trait
|
2016-10-23 18:54:31 -07:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl Foo for FooMethodForConst {
|
2017-12-19 14:41:03 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `MY_CONST` in implementation
|
2016-10-23 18:54:31 -07:00
|
|
|
|
2016-11-28 17:53:59 -08:00
|
|
|
error[E0325]: item `bar` is an associated type, which doesn't match its trait `Foo`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:41:5
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn bar(&self);
|
2016-10-23 18:54:31 -07:00
|
|
|
| -------------- item in trait
|
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | type bar = u64;
|
2016-10-23 18:54:31 -07:00
|
|
|
| ^^^^^^^^^^^^^^^ does not match trait
|
|
|
|
|
|
|
|
error[E0046]: not all trait items implemented, missing: `bar`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:39:1
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | fn bar(&self);
|
2017-12-19 14:41:03 -08:00
|
|
|
| -------------- `bar` from trait
|
2016-10-23 18:54:31 -07:00
|
|
|
...
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl Foo for FooTypeForMethod {
|
2017-12-19 14:41:03 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `bar` in implementation
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
|
|
error[E0046]: not all trait items implemented, missing: `fmt`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/impl-wrong-item-for-trait.rs:47:1
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | impl Debug for FooTypeForMethod {
|
2017-12-19 14:41:03 -08:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `fmt` in implementation
|
2016-10-23 18:54:31 -07:00
|
|
|
|
|
|
|
|
= note: `fmt` from trait: `fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`
|
|
|
|
|
2017-07-02 16:09:09 +03:00
|
|
|
error: aborting due to 8 previous errors
|
2016-10-23 18:54:31 -07:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
Some errors occurred: E0046, E0323, E0324, E0325, E0437.
|
|
|
|
For more information about an error, try `rustc --explain E0046`.
|