about summary refs log tree commit diff
path: root/src/test/ui/consts/const-expr-addr-operator.rs
blob: dc9f292c2b8ad3c6358403936b627ec3dda05c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Encountered while testing #44614.
// compile-pass

pub fn main() {
    // Constant of generic type (int)
    const X: &'static u32 = &22;
    assert_eq!(0, match &22 {
        X => 0,
        _ => 1,
    });
}