summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/obfuscated_if_else.rs
blob: c2351d64c1c555d113aebd6c082ba1439aeb6964 (plain)
1
2
3
4
5
6
7
//@run-rustfix

#![warn(clippy::obfuscated_if_else)]

fn main() {
    true.then_some("a").unwrap_or("b");
}