rust/tests/ui/error-codes/E0527.rs

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

10 lines
163 B
Rust
Raw Normal View History

2016-08-25 22:14:20 +00:00
fn main() {
let r = &[1, 2, 3, 4];
match r {
&[a, b] => {
//~^ ERROR E0527
2016-08-25 22:14:20 +00:00
println!("a={}, b={}", a, b);
}
}
}