Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
10
tests/ui/tuple/add-tuple-within-arguments.rs
Normal file
10
tests/ui/tuple/add-tuple-within-arguments.rs
Normal file
|
@ -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 function takes 3 arguments but 4 arguments were supplied
|
||||
bar("hi", "hi", "hi");
|
||||
//~^ ERROR mismatched types
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue