mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
13 lines
186 B
Rust
13 lines
186 B
Rust
//@ run-pass
|
|
|
|
// https://github.com/rust-lang/rust/issues/45044
|
|
|
|
const X: [u8; 1] = [0; 1];
|
|
|
|
fn main() {
|
|
match &X {
|
|
&X => println!("a"),
|
|
_ => println!("b"),
|
|
};
|
|
}
|