2020-04-04 20:40:31 +00:00
|
|
|
warning: unnecessary braces around function argument
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/unused_braces_borrow.rs:24:13
|
2020-03-27 20:56:58 +00:00
|
|
|
|
|
2020-04-04 20:40:31 +00:00
|
|
|
LL | consume({ a.b });
|
2021-09-09 14:22:24 +00:00
|
|
|
| ^^ ^^
|
2020-03-27 20:56:58 +00:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/unused_braces_borrow.rs:4:9
|
2020-03-27 20:56:58 +00:00
|
|
|
|
|
|
|
|
LL | #![warn(unused_braces)]
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 14:22:24 +00:00
|
|
|
help: remove these braces
|
|
|
|
|
|
|
|
|
LL - consume({ a.b });
|
|
|
|
LL + consume(a.b);
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2020-03-27 20:56:58 +00:00
|
|
|
|
2020-03-11 15:30:09 +00:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|