Closed def- closed 1 year ago
I see. I pasted it into a new file and ran it with cargo run
.
Ah, I see. cargo test
will add some amount of goo to doctests such as linking in the crate under test and putting a main
function around what you've written. Roughly to avoid having all the boiler plate show up for all the examples in the documentation.
Hrm. This already passes for me at the moment:
What are you running that it produces an error?