rust/tests/ui/proc-macro/attributes-included.rs
2024-02-16 20:02:50 +00:00

23 lines
273 B
Rust

//@ aux-build:attributes-included.rs
//@ check-pass
#![warn(unused)]
extern crate attributes_included;
use attributes_included::*;
#[bar]
#[inline]
/// doc
#[foo]
#[inline]
/// doc
fn foo() {
let a: i32 = "foo"; //~ WARN: unused variable
}
fn main() {
foo()
}