diff options
| author | Michael Goulet <michael@errs.io> | 2022-06-28 00:12:49 -0700 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-06-28 00:19:49 -0700 |
| commit | 75337775f776250a3a29c951344186e698c11c75 (patch) | |
| tree | 183204fc4e77f87a5af520d0eb0d09ae82e20ec8 /src/test/ui/tuple/add-tuple-within-arguments.rs | |
| parent | f2277e03eeb112730e3f07fab0d6b91d195fe55c (diff) | |
| download | rust-75337775f776250a3a29c951344186e698c11c75.tar.gz rust-75337775f776250a3a29c951344186e698c11c75.zip | |
Remove `final_arg_types`, improve tuple wrapping suggestion
Diffstat (limited to 'src/test/ui/tuple/add-tuple-within-arguments.rs')
| -rw-r--r-- | src/test/ui/tuple/add-tuple-within-arguments.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/tuple/add-tuple-within-arguments.rs b/src/test/ui/tuple/add-tuple-within-arguments.rs new file mode 100644 index 00000000000..089c703fda5 --- /dev/null +++ b/src/test/ui/tuple/add-tuple-within-arguments.rs @@ -0,0 +1,10 @@ +fn foo(s: &str, a: (i32, i32), s2: &str) {} + +fn bar(s: &str, a: (&str,), s2: &str) {} + +fn main() { + foo("hi", 1, 2, "hi"); + //~^ ERROR this function takes 3 arguments but 4 arguments were supplied + bar("hi", "hi", "hi"); + //~^ ERROR mismatched types +} |
