2 // Issue #7526: lowercase static constants in patterns look like bindings
4 // This is similar to lint-lowercase-static-const-pattern.rs, except it
5 // shows the expected usual workaround (choosing a different name for
6 // the static definition) and also demonstrates that one can work
7 // around this problem locally by renaming the constant in the `use`
8 // form to an uppercase identifier that placates the lint.
10 #![deny(non_upper_case_globals)]
12 pub const A : isize = 97;
20 let r = match (0,97) {
28 #[allow(non_upper_case_globals)]
29 pub const aha : isize = 7;
33 use self::m::aha as AHA;
48 (0, self::m::aha) => 0,
53 (0, self::m::aha) => 0,