rust/src/test/ui/traits/vtable/vtable-diamond.stderr

36 lines
683 B
Plaintext
Raw Normal View History

error: Vtable entries for `<S as D>`: [
2021-07-17 02:44:19 -05:00
MetadataDropInPlace,
MetadataSize,
MetadataAlign,
Method(<S as A>::foo_a),
Method(<S as B>::foo_b),
Method(<S as C>::foo_c),
TraitVPtr(<S as C>),
Method(<S as D>::foo_d),
2021-07-17 02:44:19 -05:00
]
--> $DIR/vtable-diamond.rs:21:1
|
LL | / trait D: B + C {
LL | |
LL | | fn foo_d(&self) {}
LL | | }
| |_^
2021-07-17 02:44:19 -05:00
error: Vtable entries for `<S as C>`: [
2021-07-17 02:44:19 -05:00
MetadataDropInPlace,
MetadataSize,
MetadataAlign,
Method(<S as A>::foo_a),
Method(<S as C>::foo_c),
2021-07-17 02:44:19 -05:00
]
--> $DIR/vtable-diamond.rs:15:1
|
LL | / trait C: A {
LL | |
LL | | fn foo_c(&self) {}
LL | | }
| |_^
2021-07-17 02:44:19 -05:00
error: aborting due to 2 previous errors