]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-88276-unary-plus.fixed
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-88276-unary-plus.fixed
1 // run-rustfix
2 #[allow(unused_parens)]
3 fn main() {
4     let _ = 1; //~ ERROR leading `+` is not supported
5     let _ = (1.0 + 2.0) * 3.0; //~ ERROR leading `+` is not supported
6                            //~| ERROR leading `+` is not supported
7     let _ = [3, 4+6]; //~ ERROR leading `+` is not supported
8 }