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