rust-clippy/tests/ui/lint_pass.rs
Luis de Bethencourt a5e66fa34b clean tests/ui/literals.rs
Cleaning the empty lines for clarity.
2017-05-11 16:22:32 +01:00

24 lines
439 B
Rust

#![feature(plugin)]
#![feature(rustc_private)]
#![plugin(clippy)]
#![deny(lint_without_lint_pass)]
#[macro_use] extern crate rustc;
use rustc::lint::{LintPass, LintArray};
declare_lint! { GOOD_LINT, Warn, "good lint" }
declare_lint! { MISSING_LINT, Warn, "missing lint" }
pub struct Pass;
impl LintPass for Pass {
fn get_lints(&self) -> LintArray {
lint_array![GOOD_LINT]
}
}
fn main() {
let _ = MISSING_LINT;
}