I don't know if the issue name is right or understandable sorry.
I found out that
#[nutype(validate(with = fs::exists, error = io::Error))]
struct File(PathBuf);
causes an error at the io::.
I think the macro should support that.
Current workaround
use std::io::Error as IoError; 🤷