2019-09-01 16:30:19 -05:00
|
|
|
warning: unnecessary parentheses around assigned value
|
|
|
|
--> $DIR/issue-54752-async-block.rs:6:22
|
|
|
|
|
|
2021-12-05 12:53:21 -06:00
|
|
|
LL | fn main() { let _a = (async { }); }
|
|
|
|
| ^ ^
|
2019-09-01 16:30:19 -05:00
|
|
|
|
|
|
|
|
= note: `#[warn(unused_parens)]` on by default
|
2021-09-09 09:22:24 -05:00
|
|
|
help: remove these parentheses
|
|
|
|
|
|
2021-12-05 12:53:21 -06:00
|
|
|
LL - fn main() { let _a = (async { }); }
|
|
|
|
LL + fn main() { let _a = async { }; }
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2019-09-01 16:30:19 -05:00
|
|
|
|
2020-03-11 10:30:09 -05:00
|
|
|
warning: 1 warning emitted
|
|
|
|
|