4 #![deny(inline_always, deprecated_semver)]
6 #[inline(always)] //~ERROR you have declared `#[inline(always)]` on `test_attr_lint`.
12 fn false_positive_expr() {
17 fn false_positive_stmt() {
22 fn empty_and_false_positive_stmt() {
27 #[deprecated(since = "forever")] //~ERROR the since field must contain a semver-compliant version
28 pub const SOME_CONST : u8 = 42;
30 #[deprecated(since = "1")] //~ERROR the since field must contain a semver-compliant version
31 pub const ANOTHER_CONST : u8 = 23;
33 #[deprecated(since = "0.1.1")]
34 pub const YET_ANOTHER_CONST : u8 = 0;
38 if false { false_positive_expr() }
39 if false { false_positive_stmt() }
40 if false { empty_and_false_positive_stmt() }