mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
27 lines
712 B
Plaintext
27 lines
712 B
Plaintext
error: Rust has no postfix increment operator
|
|
--> $DIR/cfg_select_parse_error.rs:7:22
|
|
|
|
|
LL | false => { 1 ++ 2 }
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
help: use `+= 1` instead
|
|
|
|
|
LL - false => { 1 ++ 2 }
|
|
LL + false => { { let tmp = 1 ; 1 += 1; tmp } 2 }
|
|
|
|
|
|
|
error: Rust has no postfix increment operator
|
|
--> $DIR/cfg_select_parse_error.rs:14:29
|
|
|
|
|
LL | false => { fn foo() { 1 +++ 2 } }
|
|
| ^^ not a valid postfix operator
|
|
|
|
|
help: use `+= 1` instead
|
|
|
|
|
LL - false => { fn foo() { 1 +++ 2 } }
|
|
LL + false => { fn foo() { { let tmp = 1 ; 1 += 1; tmp }+ 2 } }
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|