2017-10-06 16:30:23 -04:00
|
|
|
// Encountered while testing #44614.
|
2019-07-03 06:30:28 +09:00
|
|
|
//@ build-pass (FIXME(62277): could be check-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
|
|
|
}
|