warning: unnecessary parentheses around `return` value
--> src/lib.rs:2:12
|
2 | return (_ = 42);
| ^ ^
|
= note: `#[warn(unused_parens)]` on by default
help: remove these parentheses
|
2 - return (_ = 42);
2 + return _ = 42;
|
Desired output
No output, since removing the parentheses results in a compile error:
error: expected one of `;`, `}`, or an operator, found reserved identifier `_`
--> src/lib.rs:2:12
|
2 | return _ = 42;
| ^ expected one of `;`, `}`, or an operator
Code
Current output
Desired output
No output, since removing the parentheses results in a compile error:
Rationale and extra context
No response
Other cases
No response
Rust Version
Anything else?
No response