rust/tests/ui/consts/repeat_match.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
185 B
Rust
Raw Normal View History

// run-pass
2018-01-25 13:15:28 +00:00
// https://github.com/rust-lang/rust/issues/45044
const X: [u8; 1] = [0; 1];
fn main() {
match &X {
&X => println!("a"),
_ => println!("b"),
};
}