Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
xiphias2
· 6y ago · 0 comments
let x = Bar::Variant { a: 42 }; //~ ERROR
Of course it's an error, as Bar doesn't have a field called ,,a''
Comments
[–]
mark-simulacrum
6y ago
Thanks 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.