2017-07-12 11:50:05 -05:00
|
|
|
// aux-build:attributes-included.rs
|
2020-04-19 19:27:28 -05:00
|
|
|
// check-pass
|
2017-07-12 11:50:05 -05:00
|
|
|
|
2017-07-26 23:51:09 -05:00
|
|
|
#![warn(unused)]
|
2017-07-12 11:50:05 -05:00
|
|
|
|
|
|
|
extern crate attributes_included;
|
|
|
|
|
2018-07-03 17:36:31 -05:00
|
|
|
use attributes_included::*;
|
|
|
|
|
|
|
|
#[bar]
|
2017-07-12 11:50:05 -05:00
|
|
|
#[inline]
|
|
|
|
/// doc
|
2018-07-03 17:36:31 -05:00
|
|
|
#[foo]
|
2017-07-12 11:50:05 -05:00
|
|
|
#[inline]
|
|
|
|
/// doc
|
|
|
|
fn foo() {
|
|
|
|
let a: i32 = "foo"; //~ WARN: unused variable
|
|
|
|
}
|
|
|
|
|
2018-07-03 17:36:31 -05:00
|
|
|
fn main() {
|
2017-07-12 11:50:05 -05:00
|
|
|
foo()
|
|
|
|
}
|