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

14 lines
205 B
Rust
Raw Normal View History

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