upload code
This commit is contained in:
commit
3f507064ce
111 changed files with 9258 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
Error: Too few arguments
|
||||
╭─[expected-2-found-1-generic.txt:4:17]
|
||||
│
|
||||
2 │ fn foo<V>(foo: V, bar: V) {}
|
||||
· ─┬─
|
||||
· ╰─── This function takes 2 arguments,
|
||||
·
|
||||
4 │ let _unit: () = foo::<int>(1);
|
||||
· ─┬─
|
||||
· ╰─── but only 1 arguments were supplied
|
||||
───╯
|
|
@ -0,0 +1,4 @@
|
|||
// This function does nothing.
|
||||
fn foo<V>(foo: V, bar: V) {}
|
||||
|
||||
let _unit: () = foo::<int>(1);
|
11
integration/fail/too-xxx-arguments/expected-2-found-1.out
Normal file
11
integration/fail/too-xxx-arguments/expected-2-found-1.out
Normal file
|
@ -0,0 +1,11 @@
|
|||
Error: Too few arguments
|
||||
╭─[expected-2-found-1.txt:4:17]
|
||||
│
|
||||
2 │ fn foo(foo: int, bar: int) {}
|
||||
· ─┬─
|
||||
· ╰─── This function takes 2 arguments,
|
||||
·
|
||||
4 │ let _unit: () = foo(1);
|
||||
· ─┬─
|
||||
· ╰─── but only 1 arguments were supplied
|
||||
───╯
|
|
@ -0,0 +1,4 @@
|
|||
// This function does nothing.
|
||||
fn foo(foo: int, bar: int) {}
|
||||
|
||||
let _unit: () = foo(1);
|
Reference in a new issue