11 pub fn post_regular() {
13 i++; //~ ERROR Rust has no postfix increment operator
20 //~^ ERROR Rust has no postfix increment operator
25 pub fn post_regular_tmp() {
27 tmp++; //~ ERROR Rust has no postfix increment operator
31 pub fn post_while_tmp() {
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);