rust/tests/compile-fail/attrs.rs

13 lines
217 B
Rust
Raw Normal View History

2015-05-30 13:10:19 +00:00
#![feature(plugin)]
#![plugin(clippy)]
#[deny(inline_always)]
#[inline(always)] //~ERROR You have declared #[inline(always)] on test_attr_lint.
fn test_attr_lint() {
assert!(true)
}
fn main() {
test_attr_lint()
}