rust-clippy/tests/ui/crashes/ice-1588.rs

16 lines
218 B
Rust
Raw Normal View History

// run-pass
2018-07-30 09:33:44 +00:00
#![allow(clippy::all)]
2017-03-03 13:46:33 +00:00
/// Test for https://github.com/rust-lang/rust-clippy/issues/1588
2017-03-03 13:46:33 +00:00
fn main() {
match 1 {
2018-12-09 22:26:16 +00:00
1 => {},
2017-03-03 13:46:33 +00:00
2 => {
[0; 1];
2018-12-09 22:26:16 +00:00
},
_ => {},
2017-03-03 13:46:33 +00:00
}
}