summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/attributes-included.rs
blob: 95e8e10a3ece9948deb514ea1bc2778cecd354eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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()
}