]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-expr-addr-operator.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const-expr-addr-operator.rs
1 // Encountered while testing #44614.
2 // build-pass (FIXME(62277): could be check-pass?)
3
4 pub fn main() {
5     // Constant of generic type (int)
6     const X: &'static u32 = &22;
7     assert_eq!(0, match &22 {
8         X => 0,
9         _ => 1,
10     });
11 }