I am following this link Writing New lint . Although, author of this tutorial did’t mentioned, but i have added following code at top of my
foo_functions.rs, otherwise my file is showing errors.
use syntax::visit::FnKind; use syntax::ast::FnDecl; use syntax::source_map::Span; use syntax::ast::NodeId; use crate::utils::span_help_and_lint;
When i run cargo test in my directory c:\master_clippy, then i faced this error .
Whats going wrong ?