rust/src/test/ui/lint/unused_braces.stderr

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-03-27 15:56:58 -05:00
warning: unnecessary parentheses around assigned value
--> $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)]
| ^^^^^^^^^^^^^
warning: unnecessary braces around `if` condition
--> $DIR/unused_braces.rs:23:8
2020-03-27 15:56:58 -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)]
| ^^^^^^^^^^^^^
warning: unnecessary braces around `while` condition
--> $DIR/unused_braces.rs:27:11
2020-03-27 15:56:58 -05:00
|
LL | while { false } {
| ^^^^^^^^^ help: remove these braces
2020-03-27 15:56:58 -05:00
warning: unnecessary braces around const expression
--> $DIR/unused_braces.rs:31:17
2020-03-27 15:56:58 -05:00
|
LL | let _: [u8; { 3 }];
| ^^^^^ help: remove these braces
warning: unnecessary braces around function argument
--> $DIR/unused_braces.rs:34:13
|
LL | consume({ 7 });
| ^^^^^ help: remove these braces