rust/tests/ui/lint/unused/issue-92751.rs
2023-01-11 09:32:08 +00:00

10 lines
261 B
Rust

#[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() { }