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

15 lines
196 B
Rust
Raw Normal View History

#![allow(clippy::unit_arg, clippy::no_effect)]
const fn v(_: ()) {}
fn main() {
if true {
v({
[0; 1 + 1];
});
Some(())
} else {
None
};
}