1 error[E0061]: function takes 3 arguments but 4 arguments were supplied
2 --> $DIR/add-tuple-within-arguments.rs:6:5
4 LL | foo("hi", 1, 2, "hi");
7 note: function defined here
8 --> $DIR/add-tuple-within-arguments.rs:1:4
10 LL | fn foo(s: &str, a: (i32, i32), s2: &str) {}
12 help: wrap these arguments in parentheses to construct a tuple
14 LL | foo("hi", (1, 2), "hi");
17 error[E0308]: mismatched types
18 --> $DIR/add-tuple-within-arguments.rs:8:15
20 LL | bar("hi", "hi", "hi");
21 | --- ^^^^ expected tuple, found `&str`
23 | arguments to this function are incorrect
25 = note: expected tuple `(&str,)`
26 found reference `&'static str`
27 note: function defined here
28 --> $DIR/add-tuple-within-arguments.rs:3:4
30 LL | fn bar(s: &str, a: (&str,), s2: &str) {}
32 help: use a trailing comma to create a tuple with one element
34 LL | bar("hi", ("hi",), "hi");
37 error: aborting due to 2 previous errors
39 Some errors have detailed explanations: E0061, E0308.
40 For more information about an error, try `rustc --explain E0061`.