14 lines
608 B
Rust
14 lines
608 B
Rust
|
// run-rustfix
|
||
|
#[allow(unused_parens)]
|
||
|
fn main() {
|
||
|
let _ = 1; //~ ERROR leading `+` is not supported
|
||
|
let _ = -(1+2)*3; //~ ERROR leading `+` is not supported
|
||
|
let _ = -(1+2)*3; //~ ERROR leading `+` is not supported
|
||
|
//~| ERROR leading `+` is not supported
|
||
|
let _ = --(1+2)*3; //~ ERROR leading `+` is not supported
|
||
|
//~| ERROR leading `+` is not supported
|
||
|
let _ = (&"hello"); //~ ERROR leading `+` is not supported
|
||
|
let _ = [3, 4+6]; //~ ERROR leading `+` is not supported
|
||
|
//~| ERROR leading `+` is not supported
|
||
|
}
|