1 #![warn(clippy::inline_always, clippy::deprecated_semver)]
2 #![allow(clippy::assertions_on_constants)]
3 // Test that the whole restriction group is not enabled
4 #![warn(clippy::restriction)]
5 #![deny(clippy::restriction)]
6 #![forbid(clippy::restriction)]
7 #![allow(clippy::missing_docs_in_private_items, clippy::panic, clippy::unreachable)]
15 fn false_positive_expr() {
20 fn false_positive_stmt() {
25 fn empty_and_false_positive_stmt() {
29 #[deprecated(since = "forever")]
30 pub const SOME_CONST: u8 = 42;
32 #[deprecated(since = "1")]
33 pub const ANOTHER_CONST: u8 = 23;
35 #[deprecated(since = "0.1.1")]
36 pub const YET_ANOTHER_CONST: u8 = 0;
47 empty_and_false_positive_stmt()