]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/impl-wrong-item-for-trait.stderr
New upstream version 1.18.0+dfsg1
[rustc.git] / src / test / ui / span / impl-wrong-item-for-trait.stderr
CommitLineData
32a655c1
SL
1error[E0437]: type `bar` is not a member of trait `Foo`
2 --> $DIR/impl-wrong-item-for-trait.rs:47:5
3 |
447 | type bar = u64;
5 | ^^^^^^^^^^^^^^^ not a member of trait `Foo`
6
476ff2be
SL
7error[E0323]: item `bar` is an associated const, which doesn't match its trait `Foo`
8 --> $DIR/impl-wrong-item-for-trait.rs:25:5
9 |
1016 | fn bar(&self);
11 | -------------- item in trait
12...
1325 | 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:22:1
18 |
1916 | fn bar(&self);
20 | -------------- `bar` from trait
21...
cc61c64b 2222 | / impl Foo for FooConstForMethod {
476ff2be
SL
2323 | | //~^ ERROR E0046
2424 | | //~| NOTE missing `bar` in implementation
2525 | | const bar: u64 = 1;
cc61c64b 26... |
476ff2be
SL
2728 | | const MY_CONST: u32 = 1;
2829 | | }
cc61c64b 29 | |_^ missing `bar` in implementation
476ff2be
SL
30
31error[E0324]: item `MY_CONST` is an associated method, which doesn't match its trait `Foo`
32 --> $DIR/impl-wrong-item-for-trait.rs:37:5
33 |
3417 | const MY_CONST: u32;
35 | -------------------- item in trait
36...
3737 | fn MY_CONST() {}
38 | ^^^^^^^^^^^^^^^^ does not match trait
39
40error[E0046]: not all trait items implemented, missing: `MY_CONST`
41 --> $DIR/impl-wrong-item-for-trait.rs:33:1
42 |
4317 | const MY_CONST: u32;
44 | -------------------- `MY_CONST` from trait
45...
cc61c64b 4633 | / impl Foo for FooMethodForConst {
476ff2be
SL
4734 | | //~^ ERROR E0046
4835 | | //~| NOTE missing `MY_CONST` in implementation
4936 | | fn bar(&self) {}
cc61c64b 50... |
476ff2be
SL
5139 | | //~| NOTE does not match trait
5240 | | }
cc61c64b 53 | |_^ missing `MY_CONST` in implementation
476ff2be
SL
54
55error[E0325]: item `bar` is an associated type, which doesn't match its trait `Foo`
56 --> $DIR/impl-wrong-item-for-trait.rs:47:5
57 |
5816 | fn bar(&self);
59 | -------------- item in trait
60...
6147 | type bar = u64;
62 | ^^^^^^^^^^^^^^^ does not match trait
63
64error[E0046]: not all trait items implemented, missing: `bar`
65 --> $DIR/impl-wrong-item-for-trait.rs:44:1
66 |
6716 | fn bar(&self);
68 | -------------- `bar` from trait
69...
cc61c64b 7044 | / impl Foo for FooTypeForMethod {
476ff2be
SL
7145 | | //~^ ERROR E0046
7246 | | //~| NOTE missing `bar` in implementation
7347 | | type bar = u64;
cc61c64b 74... |
476ff2be
SL
7550 | | const MY_CONST: u32 = 1;
7651 | | }
cc61c64b 77 | |_^ missing `bar` in implementation
476ff2be
SL
78
79error[E0046]: not all trait items implemented, missing: `fmt`
80 --> $DIR/impl-wrong-item-for-trait.rs:53:1
81 |
cc61c64b 8253 | / impl Debug for FooTypeForMethod {
476ff2be 8354 | | }
cc61c64b 84 | |_^ missing `fmt` in implementation
476ff2be
SL
85 |
86 = note: `fmt` from trait: `fn(&Self, &mut std::fmt::Formatter<'_>) -> std::result::Result<(), std::fmt::Error>`
87
88error: aborting due to 7 previous errors
89