fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0437]: type `bar` is not a member of trait `Foo` 2 --> $DIR/impl-wrong-item-for-trait.rs:30:5 3 | 4LL | type bar = u64; 5 | ^^^^^^^^^^^^^^^ not a member of trait `Foo` 6 7error[E0323]: item `bar` is an associated const, which doesn't match its trait `Foo` 8 --> $DIR/impl-wrong-item-for-trait.rs:12:5 9 | 10LL | fn bar(&self); 11 | -------------- item in trait 12... 13LL | const bar: u64 = 1; 14 | ^^^^^^^^^^^^^^^^^^^ does not match trait 15 16error[E0046]: not all trait items implemented, missing: `bar` 17 --> $DIR/impl-wrong-item-for-trait.rs:10:1 18 | 19LL | fn bar(&self); 20 | -------------- `bar` from trait 21... 22LL | impl Foo for FooConstForMethod { 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `bar` in implementation 24 25error[E0324]: item `MY_CONST` is an associated method, which doesn't match its trait `Foo` 26 --> $DIR/impl-wrong-item-for-trait.rs:22:5 27 | 28LL | const MY_CONST: u32; 29 | -------------------- item in trait 30... 31LL | fn MY_CONST() {} 32 | ^^^^^^^^^^^^^^^^ does not match trait 33 34error[E0046]: not all trait items implemented, missing: `MY_CONST` 35 --> $DIR/impl-wrong-item-for-trait.rs:19:1 36 | 37LL | const MY_CONST: u32; 38 | -------------------- `MY_CONST` from trait 39... 40LL | impl Foo for FooMethodForConst { 41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `MY_CONST` in implementation 42 43error[E0325]: item `bar` is an associated type, which doesn't match its trait `Foo` 44 --> $DIR/impl-wrong-item-for-trait.rs:30:5 45 | 46LL | fn bar(&self); 47 | -------------- item in trait 48... 49LL | type bar = u64; 50 | ^^^^^^^^^^^^^^^ does not match trait 51 52error[E0046]: not all trait items implemented, missing: `bar` 53 --> $DIR/impl-wrong-item-for-trait.rs:28:1 54 | 55LL | fn bar(&self); 56 | -------------- `bar` from trait 57... 58LL | impl Foo for FooTypeForMethod { 59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `bar` in implementation 60 61error[E0046]: not all trait items implemented, missing: `fmt` 62 --> $DIR/impl-wrong-item-for-trait.rs:36:1 63 | 64LL | impl Debug for FooTypeForMethod { 65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `fmt` in implementation 66 | 67 = help: implement the missing item: `fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error> { todo!() }` 68 69error: aborting due to 8 previous errors 70 71Some errors have detailed explanations: E0046, E0323, E0324, E0325, E0437. 72For more information about an error, try `rustc --explain E0046`.