]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/add-tuple-within-arguments.rs
Rollup merge of #106499 - lyming2007:issue-105946-fix, r=estebank
[rust.git] / src / test / ui / tuple / add-tuple-within-arguments.rs
1 fn foo(s: &str, a: (i32, i32), s2: &str) {}
2
3 fn bar(s: &str, a: (&str,), s2: &str) {}
4
5 fn main() {
6     foo("hi", 1, 2, "hi");
7     //~^ ERROR function takes 3 arguments but 4 arguments were supplied
8     bar("hi", "hi", "hi");
9     //~^ ERROR mismatched types
10 }