rust/tests/ui/const_prop/unreachable-bounds.rs

7 lines
122 B
Rust
Raw Normal View History

// Use `build-pass` to ensure const-prop lint runs.
// build-pass
fn main() {
[()][if false { 1 } else { return }]
}