mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
33 lines
721 B
Plaintext
33 lines
721 B
Plaintext
error: unnecessary parentheses around match arm expression
|
|
--> $DIR/issue-92751.rs:4:21
|
|
|
|
|
LL | Some(()) => (1),
|
|
| ^ ^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/issue-92751.rs:1:8
|
|
|
|
|
LL | #[deny(unused)]
|
|
| ^^^^^^
|
|
= note: `#[deny(unused_parens)]` implied by `#[deny(unused)]`
|
|
help: remove these parentheses
|
|
|
|
|
LL - Some(()) => (1),
|
|
LL + Some(()) => 1,
|
|
|
|
|
|
|
error: unnecessary parentheses around match arm expression
|
|
--> $DIR/issue-92751.rs:5:17
|
|
|
|
|
LL | None => (2),
|
|
| ^ ^
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
LL - None => (2),
|
|
LL + None => 2,
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|