Remove 1-tuple unreachable case

This commit is contained in:
Rob Pilling
2022-01-16 22:47:33 +00:00
parent a129a85144
commit a8bac9879a
3 changed files with 24 additions and 21 deletions

View File

@@ -7,6 +7,9 @@ fn main() {
//~^ ERROR this enum variant takes 1 argument but 2 arguments were supplied
int_bool(1, 2);
//~^ ERROR this function takes 1 argument but 2 arguments were supplied
let _: Option<(i8,)> = Some();
//~^ ERROR this enum variant takes 1 argument but 0 arguments were supplied
}
fn int_bool(_: (i32, bool)) {