mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
12 lines
249 B
Rust
12 lines
249 B
Rust
// Encountered while testing #44614.
|
|
//@ build-pass (FIXME(62277): could be check-pass?)
|
|
|
|
pub fn main() {
|
|
// Constant of generic type (int)
|
|
const X: &'static u32 = &22;
|
|
assert_eq!(0, match &22 {
|
|
X => 0,
|
|
_ => 1,
|
|
});
|
|
}
|