]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/issue-92751.rs
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / issue-92751.rs
1 #[deny(unused)]
2 pub fn broken(x: Option<()>) -> i32 {
3     match x {
4         Some(()) => (1), //~ ERROR unnecessary parentheses around match arm expression
5         None => (2), //~ ERROR unnecessary parentheses around match arm expression
6     }
7 }
8
9 fn main() { }