about summary refs log tree commit diff
path: root/src/test/ui/argument-suggestions/missing_arguments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/argument-suggestions/missing_arguments.rs')
-rw-r--r--src/test/ui/argument-suggestions/missing_arguments.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/test/ui/argument-suggestions/missing_arguments.rs b/src/test/ui/argument-suggestions/missing_arguments.rs
deleted file mode 100644
index c26564641cb..00000000000
--- a/src/test/ui/argument-suggestions/missing_arguments.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-fn one_arg(_a: i32) {}
-fn two_same(_a: i32, _b: i32) {}
-fn two_diff(_a: i32, _b: f32) {}
-fn three_same(_a: i32, _b: i32, _c: i32) {}
-fn three_diff(_a: i32, _b: f32, _c: &str) {}
-fn four_repeated(_a: i32, _b: f32, _c: f32, _d: &str) {}
-fn complex(_a: i32, _b: f32, _c: i32, _d: f32, _e: &str) {}
-
-fn main() {
-  one_arg(); //~ ERROR function takes
-  // The headers here show the types expected,
-  // with formatting to emphasize which arguments are missing
-  /*         i32     f32    */
-  two_same(               ); //~ ERROR function takes
-  two_same(   1           ); //~ ERROR function takes
-  two_diff(               ); //~ ERROR function takes
-  two_diff(   1           ); //~ ERROR function takes
-  two_diff(          1.0  ); //~ ERROR function takes
-
-  /*           i32     i32     i32    */
-  three_same(                       ); //~ ERROR function takes
-  three_same(   1                   ); //~ ERROR function takes
-  three_same(   1,      1           ); //~ ERROR function takes
-
-  /*           i32     f32     &str   */
-  three_diff(          1.0,     ""  ); //~ ERROR function takes
-  three_diff(   1,              ""  ); //~ ERROR function takes
-  three_diff(   1,     1.0          ); //~ ERROR function takes
-  three_diff(                   ""  ); //~ ERROR function takes
-  three_diff(          1.0          ); //~ ERROR function takes
-  three_diff(   1                   ); //~ ERROR function takes
-
-  /*              i32     f32     f32     &str   */
-  four_repeated(                               ); //~ ERROR function takes
-  four_repeated(   1,                     ""   ); //~ ERROR function takes
-
-  /*        i32   f32   i32   f32   &str   */
-  complex(                               ); //~ ERROR function takes
-  complex(   1,                     ""   ); //~ ERROR function takes
-}