2021-08-31 22:07:58 -05:00
|
|
|
// run-rustfix
|
|
|
|
#[allow(unused_parens)]
|
|
|
|
fn main() {
|
|
|
|
let _ = +1; //~ ERROR leading `+` is not supported
|
2021-09-04 21:35:59 -05:00
|
|
|
let _ = (1.0 + +2.0) * +3.0; //~ ERROR leading `+` is not supported
|
2021-09-01 10:54:06 -05:00
|
|
|
//~| ERROR leading `+` is not supported
|
2021-09-04 21:35:59 -05:00
|
|
|
let _ = [+3, 4+6]; //~ ERROR leading `+` is not supported
|
2021-08-31 22:07:58 -05:00
|
|
|
}
|