fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2 3fn f() {} 4fn i(_: u32) {} 5fn is(_: u32, _: &str) {} 6fn s(_: &str) {} 7 8fn main() { 9 // code expected suggestion 10 f(); // f() 11 //~^ error: this function takes 0 arguments but 2 arguments were supplied 12 i(0,); // i(0,) 13 //~^ error: this function takes 1 argument but 3 arguments were supplied 14 i(0); // i(0) 15 //~^ error: this function takes 1 argument but 3 arguments were supplied 16 is(0, ""); // is(0, "") 17 //~^ error: this function takes 2 arguments but 4 arguments were supplied 18 s(""); // s("") 19 //~^ error: this function takes 1 argument but 3 arguments were supplied 20}