diff --git a/src/test/ui/associated-types/issue-36499.stderr b/src/test/ui/associated-types/issue-36499.stderr index 610798d880f..b49a34be98f 100644 --- a/src/test/ui/associated-types/issue-36499.stderr +++ b/src/test/ui/associated-types/issue-36499.stderr @@ -1,13 +1,17 @@ -error: leading `+` is not supported - --> $DIR/issue-36499.rs:4:9 +error: Rust has no postfix increment operator + --> $DIR/issue-36499.rs:4:7 | LL | 2 + +2; - | ^ unexpected `+` + | ^^^ not a valid postfix operator | -help: try removing the `+` +help: use `+= 1` instead + | +LL | { let tmp = 2 ; 2 += 1; tmp }2; + | +++++++++++ ~~~~~~~~~~~~~~~ +help: or, if you don't need to use it as an expression, change it to this | LL - 2 + +2; -LL + 2 + 2; +LL + 2 += 12; | error: aborting due to previous error diff --git a/src/test/ui/parser/issues/issue-88276-unary-plus.stderr b/src/test/ui/parser/issues/issue-88276-unary-plus.stderr index b26761729a8..e65bac2c5cc 100644 --- a/src/test/ui/parser/issues/issue-88276-unary-plus.stderr +++ b/src/test/ui/parser/issues/issue-88276-unary-plus.stderr @@ -10,16 +10,20 @@ LL - let _ = +1; LL + let _ = 1; | -error: leading `+` is not supported - --> $DIR/issue-88276-unary-plus.rs:5:20 +error: Rust has no postfix increment operator + --> $DIR/issue-88276-unary-plus.rs:5:18 | LL | let _ = (1.0 + +2.0) * +3.0; - | ^ unexpected `+` + | ^^^ not a valid postfix operator | -help: try removing the `+` +help: use `+= 1` instead + | +LL | let _ = ({ let tmp = 1.0 ; 1.0 += 1; tmp }2.0) * +3.0; + | +++++++++++ ~~~~~~~~~~~~~~~~~ +help: or, if you don't need to use it as an expression, change it to this | LL - let _ = (1.0 + +2.0) * +3.0; -LL + let _ = (1.0 + 2.0) * +3.0; +LL + let _ = (1.0 += 12.0) * +3.0; | error: leading `+` is not supported