3 ms·
let x = Bar::Variant { a: 42 }; //~ ERROR Of course it's an error, as Bar doesn't have a field called ,,a''
by xiphias2 7y ago
let x = Bar::Variant { a: 42 }; //~ ERROR
Of course it's an error, as Bar doesn't have a field called ,,a''
- mark-simulacrum 7y agoThanks for pointing this out! Unfortunately, unlike most of our docs we don't yet have testing in place for the code examples on the blog. I've just pushed up a fix though so once that propagates this should be fixed.