mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +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() { }
|