11 pub fn post_regular() {
13 i += 1; //~ ERROR Rust has no postfix increment operator
19 while { let tmp = i; i += 1; tmp } < 5 {
20 //~^ ERROR Rust has no postfix increment operator
25 pub fn post_regular_tmp() {
27 tmp += 1; //~ ERROR Rust has no postfix increment operator
31 pub fn post_while_tmp() {
33 while { let tmp_ = tmp; tmp += 1; tmp_ } < 5 {
34 //~^ ERROR Rust has no postfix increment operator
40 let mut foo = Foo { bar: Bar { qux: 0 } };
42 //~^ ERROR Rust has no postfix increment operator
43 println!("{}", foo.bar.qux);
46 pub fn post_field_tmp() {
50 let mut s = S { tmp: 0 };
52 //~^ ERROR Rust has no postfix increment operator
53 println!("{}", s.tmp);
57 let mut foo = Foo { bar: Bar { qux: 0 } };
59 //~^ ERROR Rust has no prefix increment operator
60 println!("{}", foo.bar.qux);