2020-08-09 00:01:19 -05:00
|
|
|
warning: unnecessary braces around const expression
|
2023-01-07 09:41:32 -06:00
|
|
|
--> $DIR/unused_braces.rs:15:14
|
2020-08-09 00:01:19 -05:00
|
|
|
|
|
|
|
|
LL | let _: A<{ 7 }>;
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^^ ^^
|
2020-08-09 00:01:19 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2021-08-27 11:04:57 -05:00
|
|
|
--> $DIR/unused_braces.rs:3:9
|
2020-08-09 00:01:19 -05:00
|
|
|
|
|
|
|
|
LL | #![warn(unused_braces)]
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 09:22:24 -05:00
|
|
|
help: remove these braces
|
|
|
|
|
|
|
|
|
LL - let _: A<{ 7 }>;
|
|
|
|
LL + let _: A<7>;
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-08-09 00:01:19 -05:00
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|