summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-88276-unary-plus.fixed
blob: 25b7c340f600d792c8360a4d39d986d32905383e (plain)
1
2
3
4
5
6
7
8
// run-rustfix
#[allow(unused_parens)]
fn main() {
    let _ = 1; //~ ERROR leading `+` is not supported
    let _ = (1.0 + 2.0) * 3.0; //~ ERROR leading `+` is not supported
                           //~| ERROR leading `+` is not supported
    let _ = [3, 4+6]; //~ ERROR leading `+` is not supported
}