about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.coverage
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2024-03-21 20:53:22 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2024-03-21 22:09:25 +0000
commit93297bfb052a8dd72123547072872915f4d60675 (patch)
tree00e218c617cec4497ec660ab58e188c928c837cb /tests/coverage/branch/lazy-boolean.coverage
parent6f2c6efe019ef57585e1099e701c800417037e04 (diff)
downloadrust-93297bfb052a8dd72123547072872915f4d60675.tar.gz
rust-93297bfb052a8dd72123547072872915f4d60675.zip
Add a never type option to make diverging blocks `()`
```rust
 #![allow(internal_features)]
 #![feature(never_type, rustc_attrs)]
 #![rustc_never_type_options(diverging_block_default = "unit")]

fn main() {
    let _: u8 = { //~ error: expected `u8`, found `()`
        return;
    };
}
```
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions