summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/issue-92751.rs
blob: 2fb292736d1368cc949e18b742bb3f53ffa47d45 (plain)
1
2
3
4
5
6
7
8
9
#[deny(unused)]
pub fn broken(x: Option<()>) -> i32 {
    match x {
        Some(()) => (1), //~ ERROR unnecessary parentheses around match arm expression
        None => (2), //~ ERROR unnecessary parentheses around match arm expression
    }
}

fn main() { }