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

14 lines
205 B
Rust
Raw Normal View History

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