rust-clippy/tests/ui/proc_macro.rs

9 lines
134 B
Rust
Raw Normal View History

2019-02-24 14:59:58 +00:00
//! Check that we correctly lint procedural macros.
#![crate_type = "proc-macro"]
#[allow(dead_code)]
fn f() {
let _x = 3.14;
}