2017-10-06 16:30:23 -04:00
|
|
|
// Encountered while testing #44614.
|
2018-04-02 13:20:06 +02:00
|
|
|
// compile-pass
|
2017-10-06 16:30:23 -04:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
// Constant of generic type (int)
|
2018-01-16 09:24:38 +01:00
|
|
|
const X: &'static u32 = &22;
|
2017-10-06 16:30:23 -04:00
|
|
|
assert_eq!(0, match &22 {
|
|
|
|
X => 0,
|
|
|
|
_ => 1,
|
|
|
|
});
|
2017-11-20 13:13:27 +01:00
|
|
|
}
|