fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2#![allow(dead_code, unused_variables, path_statements)] 3fn a() { 4 let x = 5; 5 let y = x; //~ ERROR expected function 6 (); //~ ERROR expected `;`, found `}` 7} 8 9fn b() { 10 let x = 5; 11 let y = x; //~ ERROR expected function 12 (); 13} 14fn c() { 15 let x = 5; 16 x; //~ ERROR expected function 17 () 18} 19fn d() { // ok 20 let x = || (); 21 x 22 () 23} 24fn e() { // ok 25 let x = || (); 26 x 27 (); 28} 29fn f() 30 { 31 let y = 5; //~ ERROR expected function 32 (); //~ ERROR expected `;`, found `}` 33} 34fn g() { 35 5; //~ ERROR expected function 36 (); 37} 38fn main() {}