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