2020-03-27 15:56:58 -05:00
|
|
|
warning: unnecessary parentheses around assigned value
|
2020-04-04 15:40:31 -05:00
|
|
|
--> $DIR/unused_braces.rs:7:13
|
2020-03-27 15:56:58 -05:00
|
|
|
|
|
|
|
|
LL | let _ = (7);
|
|
|
|
| ^^^ help: remove these parentheses
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/unused_braces.rs:2:24
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_braces, unused_parens)]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2020-04-04 15:40:31 -05:00
|
|
|
warning: unnecessary braces around `if` condition
|
|
|
|
--> $DIR/unused_braces.rs:23:8
|
2020-03-27 15:56:58 -05:00
|
|
|
|
|
2020-04-04 15:40:31 -05:00
|
|
|
LL | if { true } {
|
|
|
|
| ^^^^^^^^ help: remove these braces
|
2020-03-27 15:56:58 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/unused_braces.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![warn(unused_braces, unused_parens)]
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
2020-04-04 15:40:31 -05:00
|
|
|
warning: unnecessary braces around `while` condition
|
|
|
|
--> $DIR/unused_braces.rs:27:11
|
2020-03-27 15:56:58 -05:00
|
|
|
|
|
2020-04-04 15:40:31 -05:00
|
|
|
LL | while { false } {
|
|
|
|
| ^^^^^^^^^ help: remove these braces
|
2020-03-27 15:56:58 -05:00
|
|
|
|
|
|
|
warning: unnecessary braces around const expression
|
2020-04-04 15:40:31 -05:00
|
|
|
--> $DIR/unused_braces.rs:31:17
|
2020-03-27 15:56:58 -05:00
|
|
|
|
|
|
|
|
LL | let _: [u8; { 3 }];
|
|
|
|
| ^^^^^ help: remove these braces
|
|
|
|
|
2020-04-04 15:40:31 -05:00
|
|
|
warning: unnecessary braces around function argument
|
|
|
|
--> $DIR/unused_braces.rs:34:13
|
|
|
|
|
|
|
|
|
LL | consume({ 7 });
|
|
|
|
| ^^^^^ help: remove these braces
|
|
|
|
|