mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-05 03:57:43 +00:00
10 lines
261 B
Rust
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() { }
|