vendredi 2 novembre 2018

How do you test for a specific Rust error?

I can find ways to detect if Rust gives me an error,

assert!(fs::metadata(path).is_err())

source

How do I test for a specific error?

Aucun commentaire:

Enregistrer un commentaire